home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo2.zoo / demo / ex / TODO < prev    next >
Mailbox/MIME Entity  |  1984-06-11  |  102.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From gbergman@UCBBRAHMS Mon Jul 25 16:21:43 1983", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 67 62 65 | 72 67 6d 61 6e 40 55 43 |From gbe|rgman@UC|
|00000010| 42 42 52 41 48 4d 53 20 | 4d 6f 6e 20 4a 75 6c 20 |BBRAHMS |Mon Jul |
|00000020| 32 35 20 31 36 3a 32 31 | 3a 34 33 20 31 39 38 33 |25 16:21|:43 1983|
|00000030| 0a 44 61 74 65 3a 20 32 | 35 20 4a 75 6c 20 38 33 |.Date: 2|5 Jul 83|
|00000040| 20 31 36 3a 31 36 3a 35 | 32 20 50 44 54 20 28 4d | 16:16:5|2 PDT (M|
|00000050| 6f 6e 29 0a 46 72 6f 6d | 3a 20 67 62 65 72 67 6d |on).From|: gbergm|
|00000060| 61 6e 40 55 43 42 42 52 | 41 48 4d 53 20 28 47 65 |an@UCBBR|AHMS (Ge|
|00000070| 6f 72 67 65 20 4d 61 72 | 6b 20 42 65 72 67 6d 61 |orge Mar|k Bergma|
|00000080| 6e 29 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |n).Subje|ct: Re: |
|00000090| 20 65 64 69 74 6f 72 20 | 62 75 67 73 20 65 74 63 | editor |bugs etc|
|000000a0| 2e 0a 4d 65 73 73 61 67 | 65 2d 49 64 3a 20 3c 38 |..Messag|e-Id: <8|
|000000b0| 33 30 37 32 35 32 33 31 | 36 2e 41 41 32 32 37 37 |30725231|6.AA2277|
|000000c0| 36 40 55 43 42 42 52 41 | 48 4d 53 2e 41 52 50 41 |6@UCBBRA|HMS.ARPA|
|000000d0| 3e 0a 52 65 63 65 69 76 | 65 64 3a 20 62 79 20 55 |>.Receiv|ed: by U|
|000000e0| 43 42 42 52 41 48 4d 53 | 2e 41 52 50 41 20 28 33 |CBBRAHMS|.ARPA (3|
|000000f0| 2e 33 34 32 2f 33 2e 37 | 29 0a 09 69 64 20 41 41 |.342/3.7|)..id AA|
|00000100| 32 32 37 37 36 3b 20 32 | 35 20 4a 75 6c 20 38 33 |22776; 2|5 Jul 83|
|00000110| 20 31 36 3a 31 36 3a 35 | 32 20 50 44 54 20 28 4d | 16:16:5|2 PDT (M|
|00000120| 6f 6e 29 0a 52 65 63 65 | 69 76 65 64 3a 20 66 72 |on).Rece|ived: fr|
|00000130| 6f 6d 20 55 43 42 42 52 | 41 48 4d 53 2e 41 52 50 |om UCBBR|AHMS.ARP|
|00000140| 41 20 62 79 20 55 43 42 | 45 52 4e 49 45 2e 41 52 |A by UCB|ERNIE.AR|
|00000150| 50 41 20 28 33 2e 33 33 | 36 2f 33 2e 37 29 0a 09 |PA (3.33|6/3.7)..|
|00000160| 69 64 20 41 41 31 33 36 | 37 38 3b 20 32 35 20 4a |id AA136|78; 25 J|
|00000170| 75 6c 20 38 33 20 31 36 | 3a 32 31 3a 31 37 20 50 |ul 83 16|:21:17 P|
|00000180| 44 54 20 28 4d 6f 6e 29 | 0a 54 6f 3a 20 6d 63 6b |DT (Mon)|.To: mck|
|00000190| 75 73 69 63 6b 40 55 43 | 42 45 52 4e 49 45 0a 53 |usick@UC|BERNIE.S|
|000001a0| 74 61 74 75 73 3a 20 52 | 0a 0a 54 68 65 20 66 6f |tatus: R|..The fo|
|000001b0| 6c 6c 6f 77 69 6e 67 20 | 61 72 65 20 28 69 29 20 |llowing |are (i) |
|000001c0| 61 20 73 68 6f 72 74 20 | 6e 6f 74 65 20 66 72 6f |a short |note fro|
|000001d0| 6d 20 4d 61 72 6b 20 48 | 6f 72 74 6f 6e 0a 69 6e |m Mark H|orton.in|
|000001e0| 20 72 65 70 6c 79 20 74 | 6f 20 61 20 6e 6f 74 65 | reply t|o a note|
|000001f0| 20 6f 66 20 6d 69 6e 65 | 20 73 61 79 69 6e 67 20 | of mine| saying |
|00000200| 49 27 64 20 62 65 65 6e | 20 6b 65 65 70 69 6e 67 |I'd been| keeping|
|00000210| 20 6e 6f 74 65 73 0a 6f | 6e 20 65 64 69 74 6f 72 | notes.o|n editor|
|00000220| 20 62 75 67 73 2c 20 68 | 61 64 20 68 65 61 72 64 | bugs, h|ad heard|
|00000230| 20 68 65 20 68 61 64 20 | 61 20 6e 65 77 20 76 65 | he had |a new ve|
|00000240| 72 73 69 6f 6e 2c 20 77 | 61 73 0a 69 6e 74 65 72 |rsion, w|as.inter|
|00000250| 65 73 74 65 64 20 69 6e | 20 68 65 61 72 69 6e 67 |ested in| hearing|
|00000260| 20 61 62 6f 75 74 20 69 | 74 20 61 6e 64 20 70 65 | about i|t and pe|
|00000270| 72 68 61 70 73 20 73 65 | 6e 64 69 6e 67 0a 68 69 |rhaps se|nding.hi|
|00000280| 6d 20 6e 6f 74 65 73 20 | 6f 6e 20 62 75 67 73 20 |m notes |on bugs |
|00000290| 6e 6f 74 20 6d 65 6e 74 | 69 6f 6e 65 64 20 61 73 |not ment|ioned as|
|000002a0| 20 63 6f 72 72 65 63 74 | 65 64 3b 20 28 69 69 29 | correct|ed; (ii)|
|000002b0| 0a 61 20 6c 6f 6e 67 20 | 6c 65 74 74 65 72 20 66 |.a long |letter f|
|000002c0| 72 6f 6d 20 6d 65 20 69 | 6e 20 77 68 69 63 68 20 |rom me i|n which |
|000002d0| 49 20 64 6f 20 6c 69 73 | 74 20 62 75 67 73 2c 20 |I do lis|t bugs, |
|000002e0| 66 65 61 74 75 72 65 73 | 0a 49 20 74 68 69 6e 6b |features|.I think|
|000002f0| 20 77 6f 75 6c 64 20 62 | 65 20 64 65 73 69 72 61 | would b|e desira|
|00000300| 62 6c 65 20 65 74 63 2e | 2c 20 28 69 69 69 29 20 |ble etc.|, (iii) |
|00000310| 61 6e 20 61 64 64 65 6e | 64 75 6d 20 49 0a 73 65 |an adden|dum I.se|
|00000320| 6e 74 20 74 68 65 20 6e | 65 78 74 20 64 61 79 2c |nt the n|ext day,|
|00000330| 20 28 69 76 29 20 62 72 | 69 65 66 20 6a 6f 74 74 | (iv) br|ief jott|
|00000340| 69 6e 67 73 20 6e 6f 74 | 20 79 65 74 20 73 65 6e |ings not| yet sen|
|00000350| 74 2e 0a 0a 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |t...- - |- - - - |
|00000360| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|00000370| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|00000380| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|00000390| 2d 20 2d 20 2d 20 2d 20 | 2d 20 0a 3e 46 72 6f 6d |- - - - |- .>From|
|000003a0| 20 6d 61 72 6b 40 63 62 | 6f 73 67 64 2e 55 55 43 | mark@cb|osgd.UUC|
|000003b0| 50 20 54 68 75 20 4a 75 | 6c 20 32 31 20 31 32 3a |P Thu Ju|l 21 12:|
|000003c0| 33 31 3a 35 35 20 31 39 | 38 33 0a 0a 54 68 65 20 |31:55 19|83..The |
|000003d0| 6e 65 77 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 76 |new vers|ion of v|
|000003e0| 69 20 69 73 6e 27 74 20 | 76 65 72 79 20 64 69 66 |i isn't |very dif|
|000003f0| 66 65 72 65 6e 74 20 74 | 6f 20 74 68 65 20 75 73 |ferent t|o the us|
|00000400| 65 72 2e 0a 54 68 65 20 | 69 6e 74 65 72 6e 61 6c |er..The |internal|
|00000410| 73 20 75 73 65 20 74 65 | 72 6d 69 6e 66 6f 20 69 |s use te|rminfo i|
|00000420| 6e 73 74 65 61 64 20 6f | 66 20 74 65 72 6d 63 61 |nstead o|f termca|
|00000430| 70 2c 20 62 75 74 20 74 | 68 65 0a 75 73 65 72 20 |p, but t|he.user |
|00000440| 69 6e 74 65 72 66 61 63 | 65 20 69 73 6e 27 74 20 |interfac|e isn't |
|00000450| 61 66 66 65 63 74 65 64 | 20 62 79 20 74 68 69 73 |affected| by this|
|00000460| 20 28 65 78 63 65 70 74 | 20 74 68 61 74 20 69 74 | (except| that it|
|00000470| 0a 73 74 61 72 74 73 20 | 75 70 20 66 61 73 74 65 |.starts |up faste|
|00000480| 72 29 2e 20 20 54 68 65 | 20 6d 61 6a 6f 72 20 6e |r). The| major n|
|00000490| 65 77 20 66 65 61 74 75 | 72 65 73 20 61 72 65 0a |ew featu|res are.|
|000004a0| 09 73 65 74 20 73 68 6f | 77 6d 6f 64 65 0a 09 09 |.set sho|wmode...|
|000004b0| 77 69 6c 6c 20 63 61 75 | 73 65 20 61 6e 20 69 6e |will cau|se an in|
|000004c0| 64 69 63 61 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |dication| on the |
|000004d0| 73 74 61 74 75 73 20 6c | 69 6e 65 20 77 68 65 6e |status l|ine when|
|000004e0| 0a 09 09 79 6f 75 20 61 | 72 65 20 69 6e 20 69 6e |...you a|re in in|
|000004f0| 70 75 74 20 6d 6f 64 65 | 0a 09 76 65 64 69 74 0a |put mode|..vedit.|
|00000500| 09 09 69 73 20 61 20 6e | 65 77 20 69 6e 76 6f 63 |..is a n|ew invoc|
|00000510| 61 74 69 6f 6e 20 6f 66 | 20 76 69 20 66 6f 72 20 |ation of| vi for |
|00000520| 6e 6f 76 69 63 65 73 0a | 09 6d 6f 72 65 20 66 75 |novices.|.more fu|
|00000530| 6e 63 74 69 6f 6e 20 6b | 65 79 73 20 6e 6f 77 20 |nction k|eys now |
|00000540| 77 6f 72 6b 0a 09 66 75 | 6e 63 74 69 6f 6e 20 6b |work..fu|nction k|
|00000550| 65 79 73 20 77 6f 72 6b | 20 69 6e 20 62 6f 74 68 |eys work| in both|
|00000560| 20 63 6f 6d 6d 61 6e 64 | 20 61 6e 64 20 69 6e 70 | command| and inp|
|00000570| 75 74 20 6d 6f 64 65 0a | 4f 66 20 63 6f 75 72 73 |ut mode.|Of cours|
|00000580| 65 2c 20 74 68 65 72 65 | 20 61 72 65 20 61 20 66 |e, there| are a f|
|00000590| 65 77 20 62 75 67 20 66 | 69 78 65 73 20 74 6f 6f |ew bug f|ixes too|
|000005a0| 2e 0a 0a 54 68 65 72 65 | 20 69 73 20 61 20 62 69 |...There| is a bi|
|000005b0| 6e 61 72 79 20 69 6e 20 | 7e 6d 61 72 6b 2f 62 69 |nary in |~mark/bi|
|000005c0| 6e 2f 76 69 20 6f 6e 20 | 75 63 62 61 72 70 61 2e |n/vi on |ucbarpa.|
|000005d0| 20 20 49 74 20 72 65 71 | 75 69 72 65 73 20 74 68 | It req|uires th|
|000005e0| 65 0a 2f 65 74 63 2f 74 | 65 72 6d 20 68 65 69 72 |e./etc/t|erm heir|
|000005f0| 61 72 63 68 79 20 28 74 | 68 65 72 65 20 69 73 20 |archy (t|here is |
|00000600| 6e 6f 20 66 69 6c 65 20 | 63 61 6c 6c 65 64 20 2f |no file |called /|
|00000610| 65 74 63 2f 74 65 72 6d | 69 6e 66 6f 29 20 77 68 |etc/term|info) wh|
|00000620| 69 63 68 0a 77 61 73 20 | 6f 6e 20 75 63 62 61 72 |ich.was |on ucbar|
|00000630| 70 61 20 6f 6e 63 65 20 | 62 75 74 20 6d 69 67 68 |pa once |but migh|
|00000640| 74 20 62 65 20 67 6f 6e | 65 20 6e 6f 77 2e 20 20 |t be gon|e now. |
|00000650| 49 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 67 |If you w|ant to g|
|00000660| 72 61 62 0a 74 68 65 6d | 20 66 72 6f 6d 20 77 68 |rab.them| from wh|
|00000670| 65 72 65 65 76 65 72 20 | 74 68 65 79 20 73 74 69 |ereever |they sti|
|00000680| 6c 6c 20 65 78 69 73 74 | 2c 20 70 6c 65 61 73 65 |ll exist|, please|
|00000690| 20 66 65 65 6c 20 66 72 | 65 65 20 74 6f 20 74 72 | feel fr|ee to tr|
|000006a0| 79 20 74 68 65 6d 2e 0a | 09 4d 61 72 6b 0a 2d 20 |y them..|.Mark.- |
|000006b0| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|000006c0| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|000006d0| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|000006e0| 2d 20 2d 20 2d 20 2d 20 | 2d 20 2d 20 2d 20 2d 20 |- - - - |- - - - |
|000006f0| 2d 20 2d 20 0a 53 65 6e | 74 20 74 6f 20 4d 61 72 |- - .Sen|t to Mar|
|00000700| 6b 20 48 6f 72 74 6f 6e | 20 20 32 33 2f 37 2f 38 |k Horton| 23/7/8|
|00000710| 33 2c 20 61 62 6f 75 74 | 20 31 31 41 4d 0a 0a 44 |3, about| 11AM..D|
|00000720| 65 61 72 20 4d 61 72 6b | 2c 0a 0a 20 20 20 20 20 |ear Mark|,.. |
|00000730| 57 65 6c 6c 2c 20 79 6f | 75 72 20 6e 6f 74 65 20 |Well, yo|ur note |
|00000740| 64 69 64 6e 27 74 20 73 | 61 79 20 79 6f 75 20 77 |didn't s|ay you w|
|00000750| 61 6e 74 65 64 20 6d 65 | 20 74 6f 20 73 65 6e 64 |anted me| to send|
|00000760| 20 6d 79 20 63 6f 6d 6d | 65 6e 74 73 0a 6f 6e 20 | my comm|ents.on |
|00000770| 65 64 69 74 6f 72 20 62 | 75 67 73 20 61 6e 64 20 |editor b|ugs and |
|00000780| 73 75 67 67 65 73 74 69 | 6f 6e 73 2c 20 62 75 74 |suggesti|ons, but|
|00000790| 20 79 6f 75 20 64 69 64 | 6e 27 74 20 73 61 79 20 | you did|n't say |
|000007a0| 49 20 73 68 6f 75 6c 64 | 6e 27 74 2c 0a 73 6f 20 |I should|n't,.so |
|000007b0| 49 20 64 65 63 69 64 65 | 64 20 74 6f 20 64 6f 20 |I decide|d to do |
|000007c0| 73 6f 2e 20 20 49 27 76 | 65 20 74 72 69 65 64 20 |so. I'v|e tried |
|000007d0| 74 6f 20 6f 72 67 61 6e | 69 7a 65 20 69 74 20 69 |to organ|ize it i|
|000007e0| 6e 74 6f 20 73 6f 6d 65 | 20 73 6f 72 74 0a 6f 66 |nto some| sort.of|
|000007f0| 20 73 65 63 74 69 6f 6e | 73 2e 20 20 49 27 64 20 | section|s. I'd |
|00000800| 62 65 20 69 6e 74 65 72 | 65 73 74 65 64 20 74 6f |be inter|ested to|
|00000810| 20 6b 6e 6f 77 20 77 68 | 69 63 68 20 6f 66 20 74 | know wh|ich of t|
|00000820| 68 65 20 62 75 67 73 20 | 6d 65 6e 74 69 6f 6e 65 |he bugs |mentione|
|00000830| 64 0a 68 65 72 65 20 79 | 6f 75 20 68 61 76 65 20 |d.here y|ou have |
|00000840| 61 6c 72 65 61 64 79 20 | 66 6f 75 6e 64 20 61 6e |already |found an|
|00000850| 64 20 63 6f 72 72 65 63 | 74 65 64 2e 20 20 28 49 |d correc|ted. (I|
|00000860| 20 6d 61 79 20 73 6f 6f | 6e 20 66 69 6e 64 20 6f | may soo|n find o|
|00000870| 75 74 20 66 6f 72 0a 6d | 79 73 65 6c 66 3b 20 74 |ut for.m|yself; t|
|00000880| 68 65 20 70 65 72 73 6f | 6e 20 69 6e 20 63 68 61 |he perso|n in cha|
|00000890| 72 67 65 20 6f 66 20 74 | 68 69 73 20 6d 61 63 68 |rge of t|his mach|
|000008a0| 69 6e 65 20 73 61 79 73 | 20 68 65 27 6c 6c 20 74 |ine says| he'll t|
|000008b0| 72 79 20 74 6f 20 67 65 | 74 20 61 0a 63 6f 70 79 |ry to ge|t a.copy|
|000008c0| 20 6f 66 20 76 65 72 73 | 69 6f 6e 20 33 2e 39 20 | of vers|ion 3.9 |
|000008d0| 66 72 6f 6d 20 55 43 42 | 41 52 50 41 20 69 66 20 |from UCB|ARPA if |
|000008e0| 74 68 65 79 20 73 74 69 | 6c 6c 20 68 61 76 65 20 |they sti|ll have |
|000008f0| 69 74 2c 20 61 6e 64 20 | 67 65 74 20 69 74 0a 72 |it, and |get it.r|
|00000900| 75 6e 6e 69 6e 67 20 66 | 6f 72 20 6d 65 2e 20 20 |unning f|or me. |
|00000910| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 6e 79 20 |If you h|ave any |
|00000920| 68 65 6c 70 66 75 6c 20 | 69 6e 66 6f 72 6d 61 74 |helpful |informat|
|00000930| 69 6f 6e 20 66 6f 72 20 | 68 69 6d 2c 20 68 65 0a |ion for |him, he.|
|00000940| 69 73 20 72 6f 62 65 72 | 74 40 62 72 61 68 6d 73 |is rober|t@brahms|
|00000950| 2c 20 52 6f 62 65 72 74 | 20 47 72 6f 73 73 2e 29 |, Robert| Gross.)|
|00000960| 0a 20 20 20 20 20 56 65 | 64 69 74 20 73 6f 75 6e |. Ve|dit soun|
|00000970| 64 73 20 6c 69 6b 65 20 | 61 20 67 72 65 61 74 20 |ds like |a great |
|00000980| 69 64 65 61 2e 0a 20 20 | 20 20 20 49 20 73 68 6f |idea.. | I sho|
|00000990| 75 6c 64 20 6d 65 6e 74 | 69 6f 6e 20 74 68 61 74 |uld ment|ion that|
|000009a0| 20 74 68 72 6f 75 67 68 | 6f 75 74 20 74 68 69 73 | through|out this|
|000009b0| 20 6c 65 74 74 65 72 2c | 20 49 20 68 61 76 65 0a | letter,| I have.|
|000009c0| 61 76 6f 69 64 65 64 20 | 75 73 69 6e 67 20 61 63 |avoided |using ac|
|000009d0| 74 75 61 6c 20 63 6f 6e | 74 72 6f 6c 2d 63 68 61 |tual con|trol-cha|
|000009e0| 72 61 63 74 65 72 73 2c | 20 62 75 74 20 66 61 6b |racters,| but fak|
|000009f0| 65 64 20 74 68 65 6d 2c | 0a 65 2e 67 2e 20 75 73 |ed them,|.e.g. us|
|00000a00| 65 64 20 5e 20 61 6e 64 | 20 48 20 74 6f 20 67 65 |ed ^ and| H to ge|
|00000a10| 74 20 74 68 65 20 61 70 | 70 65 61 72 61 6e 63 65 |t the ap|pearance|
|00000a20| 20 6f 66 20 5e 48 2c 20 | 73 69 6e 63 65 20 66 69 | of ^H, |since fi|
|00000a30| 6c 65 73 20 77 69 74 68 | 0a 72 65 61 6c 20 63 6f |les with|.real co|
|00000a40| 6e 74 72 6f 6c 2d 63 68 | 61 72 61 63 74 65 72 73 |ntrol-ch|aracters|
|00000a50| 20 63 61 6e 20 62 65 20 | 63 6f 6e 66 75 73 69 6e | can be |confusin|
|00000a60| 67 20 77 68 65 6e 20 6c | 6f 6f 6b 65 64 20 61 74 |g when l|ooked at|
|00000a70| 20 69 6e 20 6d 61 69 6c | 2c 0a 6d 6f 72 65 2c 20 | in mail|,.more, |
|00000a80| 65 74 63 2e 20 20 42 75 | 74 20 74 68 69 73 20 6d |etc. Bu|t this m|
|00000a90| 65 61 6e 73 20 74 68 61 | 74 20 69 66 20 79 6f 75 |eans tha|t if you|
|00000aa0| 20 77 61 6e 74 20 74 6f | 20 74 72 79 20 61 6e 79 | want to| try any|
|00000ab0| 20 63 6f 6d 6d 61 6e 64 | 73 20 49 0a 72 65 66 65 | command|s I.refe|
|00000ac0| 72 20 74 6f 20 74 68 61 | 74 20 75 73 65 20 74 68 |r to tha|t use th|
|00000ad0| 65 6d 2c 20 79 6f 75 20 | 77 6f 6e 27 74 20 62 65 |em, you |won't be|
|00000ae0| 20 61 62 6c 65 20 74 6f | 20 79 61 6e 6b 20 61 6e | able to| yank an|
|00000af0| 64 20 73 6f 75 72 63 65 | 20 74 68 65 6d 2c 0a 75 |d source| them,.u|
|00000b00| 6e 6c 65 73 73 20 79 6f | 75 20 72 65 70 6c 61 63 |nless yo|u replac|
|00000b10| 65 20 6d 79 20 66 61 6b | 65 73 20 77 69 74 68 20 |e my fak|es with |
|00000b20| 72 65 61 6c 20 63 6f 6e | 74 72 6f 6c 20 63 68 61 |real con|trol cha|
|00000b30| 72 61 63 74 65 72 73 2e | 0a 20 20 20 20 20 54 68 |racters.|. Th|
|00000b40| 65 20 76 65 72 73 69 6f | 6e 20 49 20 61 6d 20 75 |e versio|n I am u|
|00000b50| 73 69 6e 67 20 69 73 20 | 33 2e 37 2e 0a 0a 0a 50 |sing is |3.7....P|
|00000b60| 52 4f 42 4c 45 4d 53 20 | 57 49 54 48 20 43 4f 55 |ROBLEMS |WITH COU|
|00000b70| 4e 54 53 0a 0a 20 20 20 | 20 20 53 6f 6d 65 20 20 |NTS.. | Some |
|00000b80| 76 69 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 74 68 |vi opera|tions th|
|00000b90| 61 74 20 6c 6f 67 69 63 | 61 6c 6c 79 20 6f 75 67 |at logic|ally oug|
|00000ba0| 68 74 20 74 6f 20 62 65 | 20 61 62 6c 65 20 74 6f |ht to be| able to|
|00000bb0| 20 74 61 6b 65 0a 63 6f | 75 6e 74 73 20 64 6f 20 | take.co|unts do |
|00000bc0| 6e 6f 74 2c 20 77 68 69 | 6c 65 20 6f 74 68 65 72 |not, whi|le other|
|00000bd0| 73 20 6d 69 73 62 65 68 | 61 76 65 20 77 69 74 68 |s misbeh|ave with|
|00000be0| 20 63 6f 75 6e 74 73 2e | 20 20 49 6e 20 74 68 69 | counts.| In thi|
|00000bf0| 73 20 73 65 63 74 69 6f | 6e 2c 0a 60 60 4e 27 27 |s sectio|n,.``N''|
|00000c00| 20 77 69 6c 6c 20 61 6c | 77 61 79 73 20 64 65 6e | will al|ways den|
|00000c10| 6f 74 65 20 61 20 70 6f | 73 69 74 69 76 65 20 69 |ote a po|sitive i|
|00000c20| 6e 74 65 67 65 72 20 70 | 6c 61 63 65 64 20 61 73 |nteger p|laced as|
|00000c30| 20 61 20 63 6f 75 6e 74 | 20 62 65 66 6f 72 65 0a | a count| before.|
|00000c40| 61 20 76 69 20 6f 70 65 | 72 61 74 69 6f 6e 2e 0a |a vi ope|ration..|
|00000c50| 20 20 20 20 20 54 68 65 | 20 6d 6f 73 74 20 67 72 | The| most gr|
|00000c60| 6f 73 73 20 63 61 73 65 | 20 6f 66 20 6d 69 73 62 |oss case| of misb|
|00000c70| 65 68 61 76 69 6f 72 20 | 69 73 20 74 68 61 74 20 |ehavior |is that |
|00000c80| 6f 66 20 4e 5e 42 21 0a | 54 68 65 20 65 66 66 65 |of N^B!.|The effe|
|00000c90| 63 74 20 69 73 20 74 6f | 20 72 65 64 72 61 77 20 |ct is to| redraw |
|00000ca0| 74 68 65 20 73 63 72 65 | 65 6e 20 32 33 4e 2d 34 |the scre|en 23N-4|
|00000cb0| 34 20 6c 69 6e 65 73 20 | 66 75 72 74 68 65 72 20 |4 lines |further |
|00000cc0| 61 64 76 61 6e 63 65 64 | 2e 0a 28 50 72 6f 62 61 |advanced|..(Proba|
|00000cd0| 62 6c 79 20 74 68 65 20 | 6e 75 6d 62 65 72 73 20 |bly the |numbers |
|00000ce0| 64 65 70 65 6e 64 20 6f | 6e 20 74 68 65 20 73 63 |depend o|n the sc|
|00000cf0| 72 65 65 6e 2d 73 69 7a | 65 20 6f 66 20 74 68 65 |reen-siz|e of the|
|00000d00| 20 74 65 72 6d 69 6e 61 | 6c 3b 0a 74 68 69 73 20 | termina|l;.this |
|00000d10| 69 73 20 6f 6e 20 61 20 | 5a 31 39 2c 20 75 73 69 |is on a |Z19, usi|
|00000d20| 6e 67 20 74 65 72 6d 63 | 61 70 20 68 31 39 75 2e |ng termc|ap h19u.|
|00000d30| 29 20 20 57 68 65 6e 20 | 4e 3d 31 2c 20 74 68 69 |) When |N=1, thi|
|00000d40| 73 20 64 6f 65 73 20 69 | 6e 64 65 65 64 0a 6d 6f |s does i|ndeed.mo|
|00000d50| 76 65 20 79 6f 75 20 61 | 20 73 63 72 65 65 6e 66 |ve you a| screenf|
|00000d60| 75 6c 20 62 61 63 6b 77 | 61 72 64 2c 20 62 75 74 |ul backw|ard, but|
|00000d70| 20 66 6f 72 20 68 69 67 | 68 65 72 20 4e 20 69 74 | for hig|her N it|
|00000d80| 20 6d 6f 76 65 73 20 74 | 68 65 20 77 69 6e 64 6f | moves t|he windo|
|00000d90| 77 0a 66 6f 72 77 61 72 | 64 20 73 6f 6d 65 20 61 |w.forwar|d some a|
|00000da0| 6d 6f 75 6e 74 21 20 20 | 46 75 72 74 68 65 72 2c |mount! |Further,|
|00000db0| 20 77 68 61 74 65 76 65 | 72 20 63 6f 6e 74 72 6f | whateve|r contro|
|00000dc0| 6c 73 20 61 72 65 20 73 | 75 70 70 6f 73 65 64 20 |ls are s|upposed |
|00000dd0| 74 6f 0a 6d 6f 6e 69 74 | 6f 72 20 77 68 65 74 68 |to.monit|or wheth|
|00000de0| 65 72 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 77 |er the c|ommand w|
|00000df0| 6f 75 6c 64 20 6c 61 6e | 64 20 6f 6e 65 20 61 74 |ould lan|d one at|
|00000e00| 20 61 6e 20 61 63 63 65 | 70 74 61 62 6c 65 20 6c | an acce|ptable l|
|00000e10| 69 6e 65 2d 0a 6e 75 6d | 62 65 72 20 73 65 65 6d |ine-.num|ber seem|
|00000e20| 20 74 6f 20 68 61 76 65 | 20 61 20 64 69 66 66 65 | to have| a diffe|
|00000e30| 72 65 6e 74 20 69 64 65 | 61 20 6f 66 20 77 68 61 |rent ide|a of wha|
|00000e40| 74 20 69 74 20 69 73 20 | 64 6f 69 6e 67 3a 20 20 |t it is |doing: |
|00000e50| 49 66 20 79 6f 75 0a 61 | 72 65 6e 27 74 20 61 6c |If you.a|ren't al|
|00000e60| 72 65 61 64 79 20 66 61 | 6d 69 6c 69 61 72 20 77 |ready fa|miliar w|
|00000e70| 69 74 68 20 74 68 65 73 | 65 20 77 65 69 72 64 20 |ith thes|e weird |
|00000e80| 65 66 66 65 63 74 73 2c | 20 74 72 79 20 73 65 74 |effects,| try set|
|00000e90| 74 69 6e 67 20 74 68 65 | 0a 63 75 72 73 6f 72 20 |ting the|.cursor |
|00000ea0| 6e 65 61 72 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |near the| end of |
|00000eb0| 61 20 66 69 6c 65 20 74 | 68 61 74 20 69 73 20 6d |a file t|hat is m|
|00000ec0| 6f 72 65 20 74 68 61 6e | 20 34 20 73 63 72 65 65 |ore than| 4 scree|
|00000ed0| 6e 66 75 6c 73 20 6c 6f | 6e 67 2c 0a 61 6e 64 20 |nfuls lo|ng,.and |
|00000ee0| 68 69 74 74 69 6e 67 20 | 33 5e 42 2e 20 20 28 59 |hitting |3^B. (Y|
|00000ef0| 6f 75 20 6d 69 67 68 74 | 20 74 68 65 6e 20 74 72 |ou might| then tr|
|00000f00| 79 20 61 6e 20 69 6e 73 | 65 72 74 20 61 74 20 74 |y an ins|ert at t|
|00000f10| 68 65 20 70 6c 61 63 65 | 20 79 6f 75 20 67 65 74 |he place| you get|
|00000f20| 0a 74 6f 2c 20 61 6e 64 | 20 61 20 3a 66 5e 5d 20 |.to, and| a :f^] |
|00000f30| 2e 29 0a 20 20 20 20 20 | 4e 2f 70 61 74 74 65 72 |.). |N/patter|
|00000f40| 6e 2f 20 77 6f 75 6c 64 | 20 62 65 20 75 73 65 66 |n/ would| be usef|
|00000f50| 75 6c 2c 20 62 75 74 20 | 69 73 20 6e 6f 74 20 61 |ul, but |is not a|
|00000f60| 6c 6c 6f 77 65 64 2e 0a | 20 20 20 20 20 4e 44 20 |llowed..| ND |
|00000f70| 77 6f 75 6c 64 20 62 65 | 20 61 20 6e 61 74 75 72 |would be| a natur|
|00000f80| 61 6c 20 73 79 6e 6f 6e | 79 6d 20 66 6f 72 20 64 |al synon|ym for d|
|00000f90| 4e 24 2c 20 62 79 20 61 | 6e 61 6c 6f 67 79 20 77 |N$, by a|nalogy w|
|00000fa0| 69 74 68 20 4e 43 20 66 | 6f 72 20 63 4e 24 2c 0a |ith NC f|or cN$,.|
|00000fb0| 62 75 74 20 69 74 20 64 | 6f 65 73 6e 27 74 20 77 |but it d|oesn't w|
|00000fc0| 6f 72 6b 20 74 68 61 74 | 20 77 61 79 3b 20 69 74 |ork that| way; it|
|00000fd0| 20 6a 75 73 74 20 69 67 | 6e 6f 72 65 73 20 74 68 | just ig|nores th|
|00000fe0| 65 20 4e 2e 0a 20 20 20 | 20 20 46 69 6e 61 6c 6c |e N.. | Finall|
|00000ff0| 79 2c 20 69 66 20 4e 20 | 69 73 20 70 72 65 63 69 |y, if N |is preci|
|00001000| 73 65 6c 79 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |sely the| number |
|00001010| 6f 66 20 6c 69 6e 65 73 | 0a 66 72 6f 6d 20 74 68 |of lines|.from th|
|00001020| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 20 74 |e curren|t line t|
|00001030| 6f 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |o the en|d of the|
|00001040| 20 66 69 6c 65 2c 20 20 | 4e 24 20 20 77 69 6c 6c | file, |N$ will|
|00001050| 20 73 74 69 6c 6c 20 63 | 6f 72 72 65 63 74 6c 79 | still c|orrectly|
|00001060| 0a 63 61 72 72 79 20 6f | 6e 65 20 74 6f 20 74 68 |.carry o|ne to th|
|00001070| 65 20 6c 61 73 74 20 63 | 68 61 72 61 63 74 65 72 |e last c|haracter|
|00001080| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 2c 20 62 75 | of the |file, bu|
|00001090| 74 20 63 4e 24 2c 20 4e | 43 2c 20 64 4e 24 20 61 |t cN$, N|C, dN$ a|
|000010a0| 6e 64 20 79 4e 24 0a 72 | 65 66 75 73 65 20 74 6f |nd yN$.r|efuse to|
|000010b0| 20 64 6f 20 61 6e 79 74 | 68 69 6e 67 21 20 20 28 | do anyt|hing! (|
|000010c0| 4e 59 20 64 6f 65 73 20 | 77 6f 72 6b 2c 20 6e 6f |NY does |work, no|
|000010d0| 74 20 62 65 69 6e 67 20 | 61 20 73 79 6e 6f 6e 79 |t being |a synony|
|000010e0| 6d 20 66 6f 72 20 79 4e | 24 2e 29 0a 54 68 65 20 |m for yN|$.).The |
|000010f0| 66 61 69 6c 75 72 65 20 | 6f 66 20 4e 43 20 69 73 |failure |of NC is|
|00001100| 20 70 61 72 74 69 63 75 | 6c 61 72 6c 79 20 61 6e | particu|larly an|
|00001110| 6e 6f 79 69 6e 67 3b 20 | 6f 66 74 65 6e 20 77 68 |noying; |often wh|
|00001120| 65 6e 20 49 20 61 6d 20 | 63 6f 6d 70 6f 73 69 6e |en I am |composin|
|00001130| 67 0a 73 6f 6d 65 74 68 | 69 6e 67 2c 20 49 20 67 |g.someth|ing, I g|
|00001140| 6f 20 62 61 63 6b 20 74 | 6f 20 73 6f 6d 65 77 68 |o back t|o somewh|
|00001150| 65 72 65 20 69 6e 20 74 | 68 65 20 6d 69 64 64 6c |ere in t|he middl|
|00001160| 65 20 6f 66 20 74 68 65 | 20 6e 65 78 74 2d 74 6f |e of the| next-to|
|00001170| 2d 0a 6c 61 73 74 20 6c | 69 6e 65 2c 20 73 61 79 |-.last l|ine, say|
|00001180| 2c 20 61 6e 64 20 77 61 | 6e 74 20 74 6f 20 72 65 |, and wa|nt to re|
|00001190| 77 72 69 74 65 20 74 68 | 65 20 72 65 73 74 20 6f |write th|e rest o|
|000011a0| 66 20 74 68 65 20 73 65 | 6e 74 65 6e 63 65 3b 0a |f the se|ntence;.|
|000011b0| 32 63 63 20 77 6f 75 6c | 64 20 6b 69 6c 6c 20 6e |2cc woul|d kill n|
|000011c0| 6f 74 20 6f 6e 6c 79 20 | 74 68 65 20 70 61 72 74 |ot only |the part|
|000011d0| 20 49 20 77 61 6e 74 20 | 74 6f 20 72 65 77 72 69 | I want |to rewri|
|000011e0| 74 65 20 62 75 74 20 61 | 6c 73 6f 20 74 68 65 20 |te but a|lso the |
|000011f0| 4f 4b 0a 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |OK.begin|ning of |
|00001200| 74 68 65 20 6c 69 6e 65 | 2c 20 61 6e 64 20 32 43 |the line|, and 2C|
|00001210| 20 6f 72 20 32 63 24 20 | 77 6f 6e 27 74 20 77 6f | or 2c$ |won't wo|
|00001220| 72 6b 2e 20 20 49 20 72 | 65 61 6c 69 7a 65 20 74 |rk. I r|ealize t|
|00001230| 68 61 74 20 49 0a 63 6f | 75 6c 64 20 67 65 74 20 |hat I.co|uld get |
|00001240| 61 72 6f 75 6e 64 20 74 | 68 69 73 20 62 79 20 6b |around t|his by k|
|00001250| 65 65 70 69 6e 67 20 61 | 6e 20 65 6d 70 74 79 20 |eeping a|n empty |
|00001260| 6c 69 6e 65 20 61 74 20 | 74 68 65 20 65 6e 64 20 |line at |the end |
|00001270| 6f 66 20 74 68 65 20 66 | 69 6c 65 2c 0a 62 75 74 |of the f|ile,.but|
|00001280| 20 74 68 61 74 20 73 68 | 6f 75 6c 64 20 6e 6f 74 | that sh|ould not|
|00001290| 20 62 65 20 6e 65 63 65 | 73 73 61 72 79 2e 0a 0a | be nece|ssary...|
|000012a0| 0a 50 52 4f 42 4c 45 4d | 53 20 52 45 47 41 52 44 |.PROBLEM|S REGARD|
|000012b0| 49 4e 47 20 53 4f 55 52 | 43 45 2c 20 4d 41 43 52 |ING SOUR|CE, MACR|
|000012c0| 4f 53 2c 20 4d 41 50 50 | 49 4e 47 53 0a 20 20 20 |OS, MAPP|INGS. |
|000012d0| 20 20 54 68 65 73 65 20 | 61 72 65 20 65 6e 6f 72 | These |are enor|
|000012e0| 6d 6f 75 73 6c 79 20 75 | 73 65 66 75 6c 2c 20 62 |mously u|seful, b|
|000012f0| 75 74 20 73 65 65 6d 20 | 74 6f 20 68 61 76 65 20 |ut seem |to have |
|00001300| 61 6c 6c 20 6b 69 6e 64 | 73 20 6f 66 20 68 69 64 |all kind|s of hid|
|00001310| 64 65 6e 0a 72 65 73 74 | 72 69 63 74 69 6f 6e 73 |den.rest|rictions|
|00001320| 2e 0a 0a 20 20 20 20 20 | 54 68 65 20 41 70 70 65 |... |The Appe|
|00001330| 6e 64 69 78 20 74 6f 20 | 74 68 65 20 45 78 20 52 |ndix to |the Ex R|
|00001340| 65 66 65 72 65 6e 63 65 | 20 4d 61 6e 75 61 6c 2c |eference| Manual,|
|00001350| 20 22 4c 69 73 74 20 6f | 66 20 43 68 61 6e 67 65 | "List o|f Change|
|00001360| 73 20 66 72 6f 6d 0a 56 | 65 72 73 69 6f 6e 20 33 |s from.V|ersion 3|
|00001370| 2e 35 20 74 6f 20 56 65 | 72 73 69 6f 6e 20 33 2e |.5 to Ve|rsion 3.|
|00001380| 36 22 20 73 61 79 73 20 | 60 60 41 20 62 75 67 20 |6" says |``A bug |
|00001390| 77 68 69 63 68 20 70 72 | 65 76 65 6e 74 65 64 20 |which pr|evented |
|000013a0| 74 68 65 20 73 6f 75 72 | 63 65 0a 63 6f 6d 6d 61 |the sour|ce.comma|
|000013b0| 6e 64 20 66 72 6f 6d 20 | 77 6f 72 6b 69 6e 67 2e |nd from |working.|
|000013c0| 2e 2e 66 72 6f 6d 20 76 | 69 73 75 61 6c 20 68 61 |..from v|isual ha|
|000013d0| 73 20 62 65 65 6e 20 66 | 69 78 65 64 27 27 2e 20 |s been f|ixed''. |
|000013e0| 20 49 74 20 69 73 20 74 | 72 75 65 20 74 68 61 74 | It is t|rue that|
|000013f0| 0a 6f 6e 65 20 63 61 6e | 20 6e 6f 77 20 75 73 65 |.one can| now use|
|00001400| 20 20 3a 73 6f 20 20 66 | 72 6f 6d 20 76 69 2c 20 | :so f|rom vi, |
|00001410| 62 75 74 20 69 74 20 73 | 74 69 6c 6c 20 68 61 73 |but it s|till has|
|00001420| 20 61 20 62 75 67 3a 20 | 20 57 68 65 6e 0a 74 68 | a bug: | When.th|
|00001430| 65 20 73 63 72 69 70 74 | 66 69 6c 65 20 69 6e 76 |e script|file inv|
|00001440| 6f 6b 65 64 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |oked con|tains a |
|00001450| 67 6c 6f 62 61 6c 20 63 | 6f 6d 6d 61 6e 64 0a 61 |global c|ommand.a|
|00001460| 6e 64 20 73 6f 6d 65 20 | 6f 74 68 65 72 20 63 6f |nd some |other co|
|00001470| 6d 6d 61 6e 64 28 73 29 | 20 61 66 74 65 72 20 69 |mmand(s)| after i|
|00001480| 74 2c 20 65 76 65 72 79 | 74 68 69 6e 67 20 61 66 |t, every|thing af|
|00001490| 74 65 72 20 74 68 65 20 | 66 69 72 73 74 20 67 6c |ter the |first gl|
|000014a0| 6f 62 61 6c 0a 63 6f 6d | 6d 61 6e 64 20 69 73 20 |obal.com|mand is |
|000014b0| 69 67 6e 6f 72 65 64 2e | 20 20 54 68 65 20 73 61 |ignored.| The sa|
|000014c0| 6d 65 20 61 70 70 65 61 | 72 73 20 74 6f 20 62 65 |me appea|rs to be|
|000014d0| 20 74 72 75 65 20 6f 66 | 20 73 63 72 69 70 74 73 | true of| scripts|
|000014e0| 20 69 6e 20 6e 61 6d 65 | 64 0a 62 75 66 66 65 72 | in name|d.buffer|
|000014f0| 73 20 69 6e 76 6f 6b 65 | 64 20 66 72 6f 6d 20 76 |s invoke|d from v|
|00001500| 69 2d 62 6f 74 74 6f 6d | 2d 6c 69 6e 65 20 62 79 |i-bottom|-line by|
|00001510| 20 20 40 78 2e 0a 0a 20 | 20 20 20 20 28 49 74 20 | @x... | (It |
|00001520| 69 73 2c 20 70 65 72 68 | 61 70 73 2c 20 75 6e 65 |is, perh|aps, une|
|00001530| 78 70 65 63 74 65 64 20 | 74 68 61 74 20 6f 6e 65 |xpected |that one|
|00001540| 20 63 61 6e 20 69 6e 76 | 6f 6b 65 20 73 63 72 69 | can inv|oke scri|
|00001550| 70 74 73 20 77 69 74 68 | 0a 6d 75 6c 74 69 6c 69 |pts with|.multili|
|00001560| 6e 65 20 63 6f 6d 6d 61 | 6e 64 73 20 75 73 69 6e |ne comma|nds usin|
|00001570| 67 20 40 78 20 66 72 6f | 6d 20 76 69 27 73 20 62 |g @x fro|m vi's b|
|00001580| 6f 74 74 6f 6d 2d 6c 69 | 6e 65 20 61 74 20 61 6c |ottom-li|ne at al|
|00001590| 6c 2c 20 73 69 6e 63 65 | 20 73 75 63 68 0a 63 6f |l, since| such.co|
|000015a0| 6d 6d 61 6e 64 73 20 77 | 69 6c 6c 20 6e 6f 74 20 |mmands w|ill not |
|000015b0| 77 6f 72 6b 20 69 66 20 | 74 79 70 65 64 20 6f 6e |work if |typed on|
|000015c0| 20 76 69 27 73 20 62 6f | 74 74 6f 6d 20 6c 69 6e | vi's bo|ttom lin|
|000015d0| 65 20 64 69 72 65 63 74 | 6c 79 2e 0a 41 20 73 63 |e direct|ly..A sc|
|000015e0| 72 69 70 74 20 6c 69 6b | 65 0a 09 73 2f 24 2f 61 |ript lik|e..s/$/a|
|000015f0| 5c 0a 09 62 0a 69 6e 76 | 6f 6b 65 64 20 61 73 20 |\..b.inv|oked as |
|00001600| 40 78 20 77 69 6c 6c 20 | 69 6e 64 65 65 64 20 77 |@x will |indeed w|
|00001610| 6f 72 6b 2e 20 20 42 75 | 74 20 73 74 72 61 6e 67 |ork. Bu|t strang|
|00001620| 65 6c 79 2c 20 69 66 20 | 6f 6e 65 20 74 72 69 65 |ely, if |one trie|
|00001630| 73 20 74 6f 0a 69 6e 76 | 6f 6b 65 20 66 72 6f 6d |s to.inv|oke from|
|00001640| 20 74 68 65 20 72 65 67 | 75 6c 61 72 20 6d 6f 64 | the reg|ular mod|
|00001650| 65 20 6f 66 20 76 69 20 | 74 68 65 20 73 63 72 69 |e of vi |the scri|
|00001660| 70 74 0a 09 3a 73 2f 24 | 2f 61 5c 0a 09 62 0a 62 |pt..:s/$|/a\..b.b|
|00001670| 79 20 70 75 74 74 69 6e | 67 20 69 74 20 69 6e 20 |y puttin|g it in |
|00001680| 62 75 66 66 65 72 20 78 | 20 61 6e 64 20 64 6f 69 |buffer x| and doi|
|00001690| 6e 67 20 20 40 78 2c 20 | 6f 6e 6c 79 20 74 68 65 |ng @x, |only the|
|000016a0| 20 66 69 72 73 74 20 6c | 69 6e 65 0a 77 69 6c 6c | first l|ine.will|
|000016b0| 20 74 61 6b 65 20 65 66 | 66 65 63 74 2e 29 0a 20 | take ef|fect.). |
|000016c0| 0a 20 20 20 20 20 41 6e | 6f 74 68 65 72 20 73 65 |. An|other se|
|000016d0| 72 69 6f 75 73 20 72 65 | 73 74 72 69 63 74 69 6f |rious re|strictio|
|000016e0| 6e 20 69 73 20 74 68 61 | 74 20 74 68 65 20 63 6f |n is tha|t the co|
|000016f0| 6d 6d 61 6e 64 20 60 60 | 76 69 27 27 20 61 70 70 |mmand ``|vi'' app|
|00001700| 65 61 72 73 20 74 6f 0a | 62 65 20 69 67 6e 6f 72 |ears to.|be ignor|
|00001710| 65 64 20 69 6e 20 73 6f | 75 72 63 65 64 20 65 78 |ed in so|urced ex|
|00001720| 2d 73 63 72 69 70 74 73 | 2c 20 61 6e 64 20 74 68 |-scripts|, and th|
|00001730| 6f 75 67 68 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |ough the| command|
|00001740| 20 51 20 69 6e 20 6d 61 | 63 72 6f 73 20 6f 66 0a | Q in ma|cros of.|
|00001750| 76 61 72 69 6f 75 73 20 | 66 6c 61 76 6f 72 73 20 |various |flavors |
|00001760| 69 6e 20 76 69 20 28 6d | 61 70 70 65 64 20 63 68 |in vi (m|apped ch|
|00001770| 61 72 61 63 74 65 72 73 | 2c 20 6d 61 70 21 65 64 |aracters|, map!ed|
|00001780| 20 63 68 61 72 61 63 74 | 65 72 73 20 74 68 61 74 | charact|ers that|
|00001790| 20 63 6f 6e 74 61 69 6e | 0a 60 60 2e 2e 2e 5e 56 | contain|.``...^V|
|000017a0| 5e 5b 2e 2e 2e 51 2e 2e | 2e 27 27 3b 20 20 40 78 |^[...Q..|.''; @x|
|000017b0| 20 73 63 72 69 70 74 73 | 29 20 64 6f 65 73 20 74 | scripts|) does t|
|000017c0| 61 6b 65 20 6f 6e 65 20 | 69 6e 74 6f 20 65 78 2c |ake one |into ex,|
|000017d0| 20 61 6e 79 20 65 78 0a | 63 6f 6d 6d 61 6e 64 73 | any ex.|commands|
|000017e0| 20 61 66 74 65 72 20 69 | 74 20 61 72 65 20 69 67 | after i|t are ig|
|000017f0| 6e 6f 72 65 64 2e 0a 20 | 0a 20 20 20 20 20 49 20 |nored.. |. I |
|00001800| 61 73 73 75 6d 65 20 79 | 6f 75 20 61 72 65 20 61 |assume y|ou are a|
|00001810| 77 61 72 65 20 6f 66 20 | 77 68 61 74 65 76 65 72 |ware of |whatever|
|00001820| 20 72 65 73 74 72 69 63 | 74 69 6f 6e 73 20 6c 65 | restric|tions le|
|00001830| 61 64 20 74 6f 20 74 68 | 65 0a 65 72 72 6f 72 2d |ad to th|e.error-|
|00001840| 6d 65 73 73 61 67 65 20 | 60 60 43 61 6e 6e 6f 74 |message |``Cannot|
|00001850| 20 79 61 6e 6b 20 69 6e | 73 69 64 65 20 67 6c 6f | yank in|side glo|
|00001860| 62 61 6c 2f 6d 61 63 72 | 6f 27 27 2c 20 73 69 6e |bal/macr|o'', sin|
|00001870| 63 65 20 79 6f 75 20 6d | 75 73 74 0a 68 61 76 65 |ce you m|ust.have|
|00001880| 20 77 72 69 74 74 65 6e | 20 69 74 2c 20 74 68 6f | written| it, tho|
|00001890| 75 67 68 20 60 60 69 6e | 73 69 64 65 27 27 20 73 |ugh ``in|side'' s|
|000018a0| 65 65 6d 73 20 74 6f 20 | 68 65 72 65 20 68 61 76 |eems to |here hav|
|000018b0| 65 20 74 68 65 20 70 65 | 63 75 6c 69 61 72 0a 6d |e the pe|culiar.m|
|000018c0| 65 61 6e 69 6e 67 20 60 | 60 61 66 74 65 72 20 61 |eaning `|`after a|
|000018d0| 20 74 65 78 74 2d 63 68 | 61 6e 67 69 6e 67 20 6f | text-ch|anging o|
|000018e0| 70 65 72 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |peration| of the |
|000018f0| 6d 61 63 72 6f 2e 27 27 | 0a 20 20 20 20 20 54 68 |macro.''|. Th|
|00001900| 65 20 65 72 72 6f 72 2d | 6d 65 73 73 61 67 65 20 |e error-|message |
|00001910| 60 60 43 61 6e 27 74 20 | 75 6e 64 6f 20 69 6e 20 |``Can't |undo in |
|00001920| 67 6c 6f 62 61 6c 20 63 | 6f 6d 6d 61 6e 64 73 27 |global c|ommands'|
|00001930| 27 20 69 73 20 6d 6f 72 | 65 0a 6d 79 73 74 65 72 |' is mor|e.myster|
|00001940| 69 6f 75 73 2c 20 73 69 | 6e 63 65 20 49 20 67 65 |ious, si|nce I ge|
|00001950| 74 20 69 74 20 77 68 65 | 6e 20 49 20 68 61 76 65 |t it whe|n I have|
|00001960| 20 61 20 67 6c 6f 62 61 | 6c 20 63 6f 6d 6d 61 6e | a globa|l comman|
|00001970| 64 20 61 66 74 65 72 0a | 61 20 74 65 78 74 2d 63 |d after.|a text-c|
|00001980| 68 61 6e 67 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 20 |hanging |command |
|00001990| 69 6e 20 61 6e 20 40 78 | 20 73 63 72 69 70 74 20 |in an @x| script |
|000019a0| 28 74 68 6f 75 67 68 20 | 6e 6f 74 20 69 6e 20 61 |(though |not in a|
|000019b0| 20 73 6f 75 72 63 65 64 | 20 66 69 6c 65 29 2e 0a | sourced| file)..|
|000019c0| 20 20 20 20 20 41 6e 79 | 77 61 79 2c 20 74 68 65 | Any|way, the|
|000019d0| 20 66 65 77 65 72 20 73 | 75 63 68 20 72 65 73 74 | fewer s|uch rest|
|000019e0| 72 69 63 74 69 6f 6e 73 | 20 74 68 65 73 65 20 6f |rictions| these o|
|000019f0| 70 65 72 61 74 69 6f 6e | 73 20 77 65 72 65 20 73 |peration|s were s|
|00001a00| 75 62 6a 65 63 74 0a 74 | 6f 2c 20 74 68 65 20 6d |ubject.t|o, the m|
|00001a10| 6f 72 65 20 75 73 65 66 | 75 6c 20 74 68 65 79 20 |ore usef|ul they |
|00001a20| 77 6f 75 6c 64 20 62 65 | 21 0a 0a 20 20 20 20 20 |would be|!.. |
|00001a30| 41 6c 74 68 6f 75 67 68 | 20 6e 65 73 74 65 64 20 |Although| nested |
|00001a40| 73 6f 75 72 63 65 20 63 | 6f 6d 6d 61 6e 64 73 20 |source c|ommands |
|00001a50| 61 72 65 20 61 6c 6c 6f | 77 65 64 20 28 61 6e 64 |are allo|wed (and|
|00001a60| 20 49 20 66 69 6e 64 20 | 74 68 65 6d 0a 75 73 65 | I find |them.use|
|00001a70| 66 75 6c 29 2c 20 74 68 | 65 79 20 6c 65 61 76 65 |ful), th|ey leave|
|00001a80| 20 74 68 65 20 65 64 69 | 74 6f 72 20 69 6e 20 61 | the edi|tor in a|
|00001a90| 20 60 60 6e 6f 70 72 6f | 6d 70 74 27 27 20 73 74 | ``nopro|mpt'' st|
|00001aa0| 61 74 65 2e 20 20 54 68 | 69 73 0a 63 61 6e 20 62 |ate. Th|is.can b|
|00001ab0| 65 20 67 6f 74 74 65 6e | 20 61 72 6f 75 6e 64 20 |e gotten| around |
|00001ac0| 62 79 20 69 6e 63 6c 75 | 64 69 6e 67 20 60 60 73 |by inclu|ding ``s|
|00001ad0| 65 20 70 72 6f 6d 70 74 | 27 27 20 61 73 20 61 20 |e prompt|'' as a |
|00001ae0| 6c 69 6e 65 20 69 6e 20 | 74 68 65 0a 6f 75 74 65 |line in |the.oute|
|00001af0| 72 6d 6f 73 74 20 73 63 | 72 69 70 74 66 69 6c 65 |rmost sc|riptfile|
|00001b00| 2c 20 62 75 74 20 49 20 | 77 6f 75 6c 64 20 68 6f |, but I |would ho|
|00001b10| 70 65 20 74 68 65 20 70 | 72 6f 62 6c 65 6d 20 63 |pe the p|roblem c|
|00001b20| 61 75 73 69 6e 67 20 69 | 74 20 63 6f 75 6c 64 0a |ausing i|t could.|
|00001b30| 62 65 20 63 75 72 65 64 | 2e 0a 0a 20 20 20 20 20 |be cured|... |
|00001b40| 57 68 65 6e 20 6f 6e 65 | 20 74 72 69 65 73 20 74 |When one| tries t|
|00001b50| 6f 20 60 60 3a 75 6e 6d | 61 70 21 27 27 20 61 20 |o ``:unm|ap!'' a |
|00001b60| 60 60 3a 6d 61 70 21 27 | 27 20 63 6f 6d 6d 61 6e |``:map!'|' comman|
|00001b70| 64 20 77 68 6f 73 65 0a | 72 69 67 68 74 2d 68 61 |d whose.|right-ha|
|00001b80| 6e 64 2d 73 69 64 65 20 | 62 65 67 69 6e 73 20 77 |nd-side |begins w|
|00001b90| 69 74 68 20 5e 48 20 28 | 65 6e 74 65 72 65 64 20 |ith ^H (|entered |
|00001ba0| 61 73 20 5e 56 5e 48 2c | 20 6f 66 20 63 6f 75 72 |as ^V^H,| of cour|
|00001bb0| 73 65 29 2c 20 6f 6e 65 | 0a 67 65 74 73 20 74 68 |se), one|.gets th|
|00001bc0| 65 20 6d 65 73 73 61 67 | 65 20 60 60 54 68 61 74 |e messag|e ``That|
|00001bd0| 20 6d 61 63 72 6f 20 77 | 61 73 6e 27 74 20 6d 61 | macro w|asn't ma|
|00001be0| 70 70 65 64 27 27 2e 20 | 20 28 4f 6e 65 20 63 61 |pped''. | (One ca|
|00001bf0| 6e 20 67 65 74 20 61 72 | 6f 75 6e 64 0a 74 68 69 |n get ar|ound.thi|
|00001c00| 73 20 62 79 20 75 73 69 | 6e 67 20 3a 75 6e 6d 61 |s by usi|ng :unma|
|00001c10| 70 21 20 5e 56 5b 63 68 | 61 72 61 63 74 65 72 5d |p! ^V[ch|aracter]|
|00001c20| 2e 29 0a 0a 20 20 20 20 | 20 43 65 72 74 61 69 6e |.).. | Certain|
|00001c30| 20 74 65 72 6d 63 61 70 | 73 20 61 70 70 61 72 65 | termcap|s appare|
|00001c40| 6e 74 6c 79 20 70 72 6f | 64 75 63 65 20 61 75 74 |ntly pro|duce aut|
|00001c50| 6f 6d 61 74 69 63 20 6d | 61 70 70 69 6e 67 73 2c |omatic m|appings,|
|00001c60| 20 77 68 69 63 68 0a 75 | 6e 66 6f 72 74 75 6e 61 | which.u|nfortuna|
|00001c70| 74 65 6c 79 20 6d 61 79 | 20 69 6e 74 65 72 66 65 |tely may| interfe|
|00001c80| 72 65 20 77 69 74 68 20 | 75 73 65 66 75 6c 20 76 |re with |useful v|
|00001c90| 69 20 63 6f 6d 6d 61 6e | 64 73 2e 20 20 49 6e 20 |i comman|ds. In |
|00001ca0| 70 61 72 74 69 63 75 6c | 61 72 2c 0a 6f 6e 20 61 |particul|ar,.on a|
|00001cb0| 20 74 76 69 2c 20 5e 4c | 20 67 65 74 73 20 6d 61 | tvi, ^L| gets ma|
|00001cc0| 70 70 65 64 20 74 6f 20 | 61 20 6d 6f 76 65 6d 65 |pped to |a moveme|
|00001cd0| 6e 74 20 63 6f 6d 6d 61 | 6e 64 2c 20 77 68 69 63 |nt comma|nd, whic|
|00001ce0| 68 20 6d 61 6b 65 73 20 | 69 74 0a 75 6e 61 76 61 |h makes |it.unava|
|00001cf0| 69 6c 61 62 6c 65 20 66 | 6f 72 20 72 65 64 72 61 |ilable f|or redra|
|00001d00| 77 69 6e 67 20 74 68 65 | 20 73 63 72 65 65 6e 2c |wing the| screen,|
|00001d10| 20 75 6e 6c 65 73 73 20 | 75 6e 6d 61 70 70 65 64 | unless |unmapped|
|00001d20| 2e 0a 0a 0a 50 52 4f 42 | 4c 45 4d 53 20 57 49 54 |....PROB|LEMS WIT|
|00001d30| 48 20 44 49 41 47 4e 4f | 53 54 49 43 53 0a 0a 22 |H DIAGNO|STICS.."|
|00001d40| 48 69 74 20 72 65 74 75 | 72 6e 20 74 6f 20 63 6f |Hit retu|rn to co|
|00001d50| 6e 74 69 6e 75 65 22 20 | 2d 2d 20 49 74 20 74 6f |ntinue" |-- It to|
|00001d60| 6f 6b 20 6d 65 20 61 20 | 6c 6f 6e 67 20 74 69 6d |ok me a |long tim|
|00001d70| 65 20 74 6f 20 72 65 61 | 6c 69 7a 65 20 74 68 61 |e to rea|lize tha|
|00001d80| 74 0a 77 68 65 6e 20 49 | 20 67 6f 74 20 74 68 69 |t.when I| got thi|
|00001d90| 73 20 64 69 61 67 6e 6f | 73 74 69 63 20 74 68 65 |s diagno|stic the|
|00001da0| 72 65 20 77 61 73 20 61 | 6e 20 61 6c 74 65 72 6e |re was a|n altern|
|00001db0| 61 74 69 76 65 20 74 6f | 20 68 69 74 74 69 6e 67 |ative to| hitting|
|00001dc0| 0a 72 65 74 75 72 6e 2e | 20 20 49 20 73 75 67 67 |.return.| I sugg|
|00001dd0| 65 73 74 20 69 74 20 62 | 65 20 72 65 77 6f 72 64 |est it b|e reword|
|00001de0| 65 64 0a 09 22 48 69 74 | 20 52 65 74 75 72 6e 20 |ed.."Hit| Return |
|00001df0| 6f 72 20 3a 22 0a 48 6f | 77 65 76 65 72 2c 20 74 |or :".Ho|wever, t|
|00001e00| 68 65 20 62 65 68 61 76 | 69 6f 72 20 6f 66 20 74 |he behav|ior of t|
|00001e10| 68 65 20 65 64 69 74 6f | 72 20 77 68 65 6e 20 74 |he edito|r when t|
|00001e20| 68 69 73 20 64 69 61 67 | 6e 6f 73 74 69 63 20 69 |his diag|nostic i|
|00001e30| 73 20 67 69 76 65 6e 0a | 73 65 65 6d 73 20 74 6f |s given.|seems to|
|00001e40| 20 62 65 20 69 6e 63 6f | 6e 73 69 73 74 65 6e 74 | be inco|nsistent|
|00001e50| 2e 20 20 49 6e 20 70 61 | 72 74 69 63 75 6c 61 72 |. In pa|rticular|
|00001e60| 2c 20 77 68 65 6e 20 74 | 68 65 20 6c 61 73 74 20 |, when t|he last |
|00001e70| 6f 66 20 61 20 73 65 72 | 69 6f 75 73 0a 6f 66 20 |of a ser|ious.of |
|00001e80| 63 6f 6d 6d 61 6e 64 73 | 20 69 73 0a 09 3a 65 20 |commands| is..:e |
|00001e90| 6f 74 68 65 72 66 69 6c | 65 0a 61 6e 64 20 49 20 |otherfil|e.and I |
|00001ea0| 67 65 74 20 22 48 69 74 | 20 72 65 74 75 72 6e 20 |get "Hit| return |
|00001eb0| 74 6f 20 63 6f 6e 74 69 | 6e 75 65 22 2c 20 74 68 |to conti|nue", th|
|00001ec0| 65 6e 20 68 69 74 74 69 | 6e 67 20 3a 20 75 73 75 |en hitti|ng : usu|
|00001ed0| 61 6c 6c 79 0a 68 61 73 | 20 6e 6f 20 64 69 66 66 |ally.has| no diff|
|00001ee0| 65 72 65 6e 74 20 65 66 | 66 65 63 74 20 66 72 6f |erent ef|fect fro|
|00001ef0| 6d 20 68 69 74 74 69 6e | 67 20 72 65 74 75 72 6e |m hittin|g return|
|00001f00| 20 28 6f 72 20 61 6e 79 | 20 6f 74 68 65 72 0a 6b | (or any| other.k|
|00001f10| 65 79 29 2c 20 6e 61 6d | 65 6c 79 20 74 68 65 20 |ey), nam|ely the |
|00001f20| 73 63 72 65 65 6e 20 69 | 73 20 72 65 64 72 61 77 |screen i|s redraw|
|00001f30| 6e 3b 20 79 65 74 20 49 | 20 74 68 69 6e 6b 20 74 |n; yet I| think t|
|00001f40| 68 61 74 20 73 6f 6d 65 | 74 69 6d 65 73 0a 69 6e |hat some|times.in|
|00001f50| 20 74 68 69 73 20 73 69 | 74 75 61 74 69 6f 6e 20 | this si|tuation |
|00001f60| 69 74 20 68 61 73 20 62 | 72 6f 75 67 68 74 20 6d |it has b|rought m|
|00001f70| 65 20 64 69 72 65 63 74 | 6c 79 20 74 6f 20 74 68 |e direct|ly to th|
|00001f80| 65 20 62 6f 74 74 6f 6d | 20 6c 69 6e 65 0a 61 73 |e bottom| line.as|
|00001f90| 20 64 65 73 69 72 65 64 | 2e 20 20 56 65 72 79 20 | desired|. Very |
|00001fa0| 63 6f 6e 66 75 73 69 6e | 67 2e 0a 20 20 20 20 20 |confusin|g.. |
|00001fb0| 57 6f 75 6c 64 20 69 74 | 20 62 65 20 70 6f 73 73 |Would it| be poss|
|00001fc0| 69 62 6c 65 20 74 6f 20 | 68 61 76 65 20 6f 74 68 |ible to |have oth|
|00001fd0| 65 72 20 61 6c 74 65 72 | 6e 61 74 69 76 65 73 20 |er alter|natives |
|00001fe0| 74 68 61 6e 20 3a 20 61 | 6e 64 20 72 65 74 75 72 |than : a|nd retur|
|00001ff0| 6e 0a 61 76 61 69 6c 61 | 62 6c 65 2c 20 73 75 63 |n.availa|ble, suc|
|00002000| 68 20 61 73 20 2f 70 61 | 74 74 65 72 6e 20 3f 20 |h as /pa|ttern ? |
|00002010| 20 4f 72 2c 20 6d 6f 72 | 65 20 73 69 6d 70 6c 79 | Or, mor|e simply|
|00002020| 2c 20 77 68 65 6e 20 6f | 6e 65 20 77 6f 75 6c 64 |, when o|ne would|
|00002030| 20 70 72 65 73 65 6e 74 | 6c 79 0a 62 65 20 67 69 | present|ly.be gi|
|00002040| 76 65 6e 20 74 68 65 20 | 64 69 61 67 6e 6f 73 74 |ven the |diagnost|
|00002050| 69 63 20 22 48 69 74 20 | 72 65 74 75 72 6e 20 74 |ic "Hit |return t|
|00002060| 6f 20 63 6f 6e 74 69 6e | 75 65 22 2c 20 77 68 79 |o contin|ue", why|
|00002070| 20 6e 6f 74 20 6a 75 73 | 74 20 70 75 74 20 74 68 | not jus|t put th|
|00002080| 65 0a 65 64 69 74 6f 72 | 20 69 6e 74 6f 20 74 68 |e.editor| into th|
|00002090| 65 20 73 74 61 74 65 20 | 69 74 20 77 6f 75 6c 64 |e state |it would|
|000020a0| 20 68 61 76 65 20 69 66 | 20 6f 6e 65 20 74 68 65 | have if| one the|
|000020b0| 6e 20 68 69 74 20 3a 2c | 20 73 69 6e 63 65 20 6f |n hit :,| since o|
|000020c0| 6e 65 20 77 6f 75 6c 64 | 0a 74 68 65 6e 20 73 74 |ne would|.then st|
|000020d0| 69 6c 6c 20 68 61 76 65 | 20 74 68 65 20 6f 70 74 |ill have| the opt|
|000020e0| 69 6f 6e 20 6f 66 20 68 | 69 74 74 69 6e 67 20 72 |ion of h|itting r|
|000020f0| 65 74 75 72 6e 20 61 6e | 64 20 67 65 74 74 69 6e |eturn an|d gettin|
|00002100| 67 20 69 6e 74 6f 20 76 | 69 0a 70 72 6f 70 65 72 |g into v|i.proper|
|00002110| 2c 20 62 75 74 20 69 74 | 20 77 6f 75 6c 64 20 6e |, but it| would n|
|00002120| 6f 74 20 72 65 71 75 69 | 72 65 20 74 68 65 20 65 |ot requi|re the e|
|00002130| 78 74 72 61 20 6b 65 79 | 73 74 72 6f 6b 65 20 3a |xtra key|stroke :|
|00002140| 20 74 6f 0a 62 65 67 69 | 6e 20 61 20 62 6f 74 74 | to.begi|n a bott|
|00002150| 6f 6d 2d 6c 69 6e 65 20 | 63 6f 6d 6d 61 6e 64 2c |om-line |command,|
|00002160| 20 6e 6f 72 20 77 6f 75 | 6c 64 20 6f 6e 65 20 67 | nor wou|ld one g|
|00002170| 6f 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 66 72 |o throug|h the fr|
|00002180| 65 71 75 65 6e 74 0a 66 | 72 75 73 74 72 61 74 69 |equent.f|rustrati|
|00002190| 6e 67 20 65 78 70 65 72 | 69 65 6e 63 65 20 6f 66 |ng exper|ience of|
|000021a0| 20 61 62 73 65 6e 74 6d | 69 6e 64 65 64 6c 79 20 | absentm|indedly |
|000021b0| 73 74 61 72 74 69 6e 67 | 20 74 6f 20 77 72 69 74 |starting| to writ|
|000021c0| 65 20 61 0a 62 6f 74 74 | 6f 6d 2d 6c 69 6e 65 20 |e a.bott|om-line |
|000021d0| 63 6f 6d 6d 61 6e 64 2c | 20 6f 72 20 61 20 70 61 |command,| or a pa|
|000021e0| 74 74 65 72 6e 2d 73 65 | 61 72 63 68 2c 20 61 6e |ttern-se|arch, an|
|000021f0| 64 20 74 68 65 6e 20 68 | 61 76 69 6e 67 20 74 6f |d then h|aving to|
|00002200| 20 77 61 69 74 0a 77 68 | 69 6c 65 20 74 68 65 20 | wait.wh|ile the |
|00002210| 73 63 72 65 65 6e 20 77 | 61 73 20 72 65 64 72 61 |screen w|as redra|
|00002220| 77 6e 20 62 65 63 61 75 | 73 65 20 6f 6e 65 20 68 |wn becau|se one h|
|00002230| 61 64 20 68 69 74 20 61 | 20 6b 65 79 20 6f 74 68 |ad hit a| key oth|
|00002240| 65 72 20 74 68 61 6e 20 | 3a 2e 0a 0a 22 55 73 69 |er than |:..."Usi|
|00002250| 6e 67 20 6f 70 65 6e 20 | 6d 6f 64 65 22 0a 41 67 |ng open |mode".Ag|
|00002260| 61 69 6e 2c 20 69 74 20 | 74 6f 6f 6b 20 6d 65 20 |ain, it |took me |
|00002270| 61 20 6c 6f 6e 67 20 74 | 69 6d 65 20 74 6f 20 6c |a long t|ime to l|
|00002280| 65 61 72 6e 20 74 68 61 | 74 20 77 68 65 6e 20 49 |earn tha|t when I|
|00002290| 20 74 72 69 65 64 20 74 | 6f 20 65 6e 74 65 72 0a | tried t|o enter.|
|000022a0| 76 69 20 61 6e 64 20 67 | 6f 74 20 74 68 69 73 20 |vi and g|ot this |
|000022b0| 64 69 61 67 6e 6f 73 74 | 69 63 2c 20 69 74 20 6d |diagnost|ic, it m|
|000022c0| 65 61 6e 74 20 74 68 61 | 74 20 74 68 65 20 73 79 |eant tha|t the sy|
|000022d0| 73 74 65 6d 20 68 61 64 | 20 73 6f 6d 65 68 6f 77 |stem had| somehow|
|000022e0| 0a 6c 6f 73 74 20 74 68 | 65 20 74 65 72 6d 63 61 |.lost th|e termca|
|000022f0| 70 20 66 6f 72 20 74 68 | 65 20 74 65 72 6d 69 6e |p for th|e termin|
|00002300| 61 6c 20 49 20 77 61 73 | 20 6f 6e 2c 20 61 6e 64 |al I was| on, and|
|00002310| 20 74 68 61 74 20 49 20 | 77 6f 75 6c 64 20 68 61 | that I |would ha|
|00002320| 76 65 0a 74 6f 20 64 6f | 20 73 6f 6d 65 74 68 69 |ve.to do| somethi|
|00002330| 6e 67 20 74 6f 20 67 65 | 74 20 74 68 65 20 63 6f |ng to ge|t the co|
|00002340| 72 72 65 63 74 20 74 65 | 72 6d 63 61 70 20 69 6e |rrect te|rmcap in|
|00002350| 74 6f 20 74 68 65 20 65 | 6e 76 69 72 6f 6e 6d 65 |to the e|nvironme|
|00002360| 6e 74 2e 0a 54 69 6c 6c | 20 49 20 72 65 61 6c 69 |nt..Till| I reali|
|00002370| 7a 65 64 20 74 68 69 73 | 2c 20 49 20 67 65 6e 65 |zed this|, I gene|
|00002380| 72 61 6c 6c 79 20 65 6e | 64 65 64 20 75 70 20 65 |rally en|ded up e|
|00002390| 69 74 68 65 72 20 73 74 | 72 75 67 67 6c 69 6e 67 |ither st|ruggling|
|000023a0| 20 61 6c 6f 6e 67 0a 66 | 72 75 73 74 72 61 74 65 | along.f|rustrate|
|000023b0| 64 20 69 6e 20 6f 70 65 | 6e 20 6d 6f 64 65 2c 20 |d in ope|n mode, |
|000023c0| 6f 72 20 6c 6f 67 67 69 | 6e 67 20 6f 75 74 20 61 |or loggi|ng out a|
|000023d0| 6e 64 20 6c 6f 67 67 69 | 6e 67 20 62 61 63 6b 20 |nd loggi|ng back |
|000023e0| 69 6e 2e 20 20 49 20 73 | 75 67 67 65 73 74 0a 74 |in. I s|uggest.t|
|000023f0| 68 61 74 20 77 68 65 6e | 20 73 6f 6d 65 6f 6e 65 |hat when| someone|
|00002400| 20 63 61 6c 6c 73 20 66 | 6f 72 20 76 69 20 61 6e | calls f|or vi an|
|00002410| 64 20 74 68 65 20 74 65 | 72 6d 63 61 70 20 69 73 |d the te|rmcap is|
|00002420| 20 6e 6f 74 20 61 70 70 | 72 6f 70 72 69 61 74 65 | not app|ropriate|
|00002430| 2c 0a 74 68 65 20 65 64 | 69 74 6f 72 20 73 68 6f |,.the ed|itor sho|
|00002440| 75 6c 64 20 6e 6f 74 20 | 62 65 20 69 6e 76 6f 6b |uld not |be invok|
|00002450| 65 64 20 69 6e 20 61 6e | 79 20 66 6f 72 6d 2c 20 |ed in an|y form, |
|00002460| 62 75 74 20 69 6e 73 74 | 65 61 64 2c 20 61 20 6d |but inst|ead, a m|
|00002470| 65 73 73 61 67 65 0a 62 | 65 20 67 69 76 65 6e 20 |essage.b|e given |
|00002480| 73 75 63 68 20 61 73 3a | 0a 20 20 20 20 20 60 60 |such as:|. ``|
|00002490| 59 6f 75 72 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |Your env|ironment|
|000024a0| 20 64 6f 65 73 20 6e 6f | 74 20 73 68 6f 77 20 61 | does no|t show a|
|000024b0| 20 74 65 72 6d 63 61 70 | 20 65 6e 74 72 79 20 70 | termcap| entry p|
|000024c0| 65 72 6d 69 74 74 69 6e | 67 0a 74 68 65 20 75 73 |ermittin|g.the us|
|000024d0| 65 20 6f 66 20 74 68 65 | 20 76 69 73 75 61 6c 20 |e of the| visual |
|000024e0| 65 64 69 74 6f 72 2e 20 | 20 49 66 20 79 6f 75 20 |editor. | If you |
|000024f0| 61 72 65 20 77 6f 72 6b | 69 6e 67 20 6f 6e 20 61 |are work|ing on a|
|00002500| 20 74 65 72 6d 69 6e 61 | 6c 20 6e 6f 74 0a 73 75 | termina|l not.su|
|00002510| 70 70 6f 72 74 69 6e 67 | 20 76 69 20 28 69 6e 20 |pporting| vi (in |
|00002520| 70 61 72 74 69 63 75 6c | 61 72 2c 20 61 20 64 65 |particul|ar, a de|
|00002530| 76 69 63 65 20 77 69 74 | 68 20 6e 6f 20 61 64 64 |vice wit|h no add|
|00002540| 72 65 73 73 61 62 6c 65 | 20 63 75 72 73 6f 72 29 |ressable| cursor)|
|00002550| 2c 0a 79 6f 75 20 6d 61 | 79 20 65 6e 74 65 72 20 |,.you ma|y enter |
|00002560| 6f 6e 65 20 6f 66 20 74 | 68 65 20 6f 74 68 65 72 |one of t|he other|
|00002570| 20 6d 6f 64 65 73 20 6f | 66 20 74 68 65 20 65 64 | modes o|f the ed|
|00002580| 69 74 6f 72 20 77 69 74 | 68 20 74 68 65 20 63 6f |itor wit|h the co|
|00002590| 6d 6d 61 6e 64 0a 22 6f | 70 65 6e 20 66 69 6c 65 |mmand."o|pen file|
|000025a0| 6e 61 6d 65 22 20 6f 72 | 20 22 65 78 20 66 69 6c |name" or| "ex fil|
|000025b0| 65 6e 61 6d 65 22 2e 20 | 20 49 66 20 79 6f 75 20 |ename". | If you |
|000025c0| 61 72 65 20 77 6f 72 6b | 69 6e 67 20 6f 6e 20 61 |are work|ing on a|
|000025d0| 20 74 65 72 6d 69 6e 61 | 6c 0a 74 68 61 74 20 73 | termina|l.that s|
|000025e0| 68 6f 75 6c 64 20 73 75 | 70 70 6f 72 74 20 76 69 |hould su|pport vi|
|000025f0| 2c 20 79 6f 75 72 20 65 | 6e 76 69 72 6f 6e 6d 65 |, your e|nvironme|
|00002600| 6e 74 20 65 6e 74 72 69 | 65 73 20 61 72 65 20 69 |nt entri|es are i|
|00002610| 6e 63 6f 72 72 65 63 74 | 20 61 6e 64 0a 73 68 6f |ncorrect| and.sho|
|00002620| 75 6c 64 20 62 65 20 63 | 6f 72 72 65 63 74 65 64 |uld be c|orrected|
|00002630| 2e 20 20 54 68 65 79 20 | 70 72 65 73 65 6e 74 6c |. They |presentl|
|00002640| 79 20 73 68 6f 77 3a 0a | 20 20 20 20 20 54 45 52 |y show:.| TER|
|00002650| 4d 3d 2e 2e 2e 2e 0a 20 | 20 20 20 20 54 45 52 4d |M=..... | TERM|
|00002660| 43 41 50 3d 2e 2e 2e 2e | 0a 49 66 20 79 6f 75 20 |CAP=....|.If you |
|00002670| 6b 6e 6f 77 20 74 68 65 | 20 63 6f 72 72 65 63 74 |know the| correct|
|00002680| 20 6e 61 6d 65 20 6f 72 | 20 61 62 62 72 65 76 69 | name or| abbrevi|
|00002690| 61 74 69 6f 6e 20 66 6f | 72 20 79 6f 75 72 20 74 |ation fo|r your t|
|000026a0| 65 72 6d 69 6e 61 6c 2d | 0a 74 79 70 65 2c 20 74 |erminal-|.type, t|
|000026b0| 79 70 65 20 69 74 20 61 | 74 20 74 68 65 20 65 6e |ype it a|t the en|
|000026c0| 64 20 6f 66 20 74 68 65 | 20 6e 65 78 74 20 6c 69 |d of the| next li|
|000026d0| 6e 65 3b 20 69 66 20 6e | 6f 74 20 68 69 74 20 72 |ne; if n|ot hit r|
|000026e0| 65 74 75 72 6e 3a 0a 20 | 20 20 20 20 25 20 73 65 |eturn:. | % se|
|000026f0| 74 65 6e 76 20 54 45 52 | 4d 20 27 27 0a 20 20 20 |tenv TER|M ''. |
|00002700| 20 20 49 66 20 74 68 65 | 20 75 73 65 72 20 74 79 | If the| user ty|
|00002710| 70 65 64 20 61 6e 20 61 | 63 63 65 70 74 61 62 6c |ped an a|cceptabl|
|00002720| 65 20 74 65 72 6d 69 6e | 61 6c 2d 6e 61 6d 65 2c |e termin|al-name,|
|00002730| 20 74 68 65 20 6d 65 73 | 73 61 67 65 20 77 6f 75 | the mes|sage wou|
|00002740| 6c 64 0a 63 6f 6e 74 69 | 6e 75 65 2c 20 74 65 6c |ld.conti|nue, tel|
|00002750| 6c 69 6e 67 20 68 6f 77 | 20 74 6f 20 67 65 74 20 |ling how| to get |
|00002760| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|00002770| 74 65 72 6d 63 61 70 2e | 20 20 49 66 20 74 68 65 |termcap.| If the|
|00002780| 20 75 73 65 72 0a 69 6e | 73 74 65 61 64 20 74 79 | user.in|stead ty|
|00002790| 70 65 64 20 72 65 74 75 | 72 6e 2c 20 74 68 65 20 |ped retu|rn, the |
|000027a0| 6d 65 73 73 61 67 65 20 | 77 6f 75 6c 64 20 61 73 |message |would as|
|000027b0| 6b 20 68 69 6d 20 6f 72 | 20 68 65 72 20 74 6f 20 |k him or| her to |
|000027c0| 74 79 70 65 20 74 68 65 | 0a 6e 61 6d 65 20 6f 66 |type the|.name of|
|000027d0| 20 74 68 65 20 6d 61 6e | 75 66 61 63 74 75 72 65 | the man|ufacture|
|000027e0| 72 20 73 68 6f 77 6e 20 | 6f 6e 20 74 68 65 20 74 |r shown |on the t|
|000027f0| 65 72 6d 69 6e 61 6c 2c | 20 6e 6f 74 0a 77 6f 72 |erminal,| not.wor|
|00002800| 72 79 69 6e 67 20 61 62 | 6f 75 74 20 75 70 70 65 |rying ab|out uppe|
|00002810| 72 2f 6c 6f 77 65 72 2d | 63 61 73 65 20 64 69 73 |r/lower-|case dis|
|00002820| 74 69 6e 63 74 69 6f 6e | 73 2c 20 61 6e 64 20 61 |tinction|s, and a|
|00002830| 20 6c 69 73 74 20 6f 66 | 20 70 6f 73 73 69 62 6c | list of| possibl|
|00002840| 65 0a 74 65 72 6d 69 6e | 61 6c 20 6e 61 6d 65 73 |e.termin|al names|
|00002850| 20 61 6e 64 20 61 62 62 | 72 65 76 69 61 74 69 6f | and abb|reviatio|
|00002860| 6e 73 20 77 6f 75 6c 64 | 20 62 65 20 67 69 76 65 |ns would| be give|
|00002870| 6e 2e 2e 2e 20 2e 20 20 | 54 68 69 73 20 77 68 6f |n... . |This who|
|00002880| 6c 65 0a 70 72 6f 67 72 | 61 6d 20 77 6f 75 6c 64 |le.progr|am would|
|00002890| 20 6e 6f 74 20 62 65 20 | 70 61 72 74 20 6f 66 20 | not be |part of |
|000028a0| 74 68 65 20 65 64 69 74 | 6f 72 2c 20 73 6f 20 74 |the edit|or, so t|
|000028b0| 68 65 72 65 20 77 6f 75 | 6c 64 0a 62 65 20 6e 6f |here wou|ld.be no|
|000028c0| 20 70 72 6f 62 6c 65 6d | 20 6f 66 20 73 70 61 63 | problem| of spac|
|000028d0| 65 20 77 69 74 68 69 6e | 20 74 68 65 20 65 78 69 |e within| the exi|
|000028e0| 73 74 69 6e 67 20 63 72 | 6f 77 64 65 64 20 63 6f |sting cr|owded co|
|000028f0| 6e 66 69 6e 65 73 20 6f | 66 0a 74 68 65 20 65 64 |nfines o|f.the ed|
|00002900| 69 74 6f 72 20 63 6f 64 | 65 2e 0a 0a 22 4e 6f 20 |itor cod|e..."No |
|00002910| 73 75 63 68 20 66 69 6c | 65 20 6f 72 20 64 69 72 |such fil|e or dir|
|00002920| 65 63 74 6f 72 79 22 20 | 2d 2d 20 49 20 74 68 69 |ectory" |-- I thi|
|00002930| 6e 6b 20 74 68 65 72 65 | 20 73 68 6f 75 6c 64 20 |nk there| should |
|00002940| 62 65 20 61 20 64 69 73 | 74 69 6e 63 74 69 6f 6e |be a dis|tinction|
|00002950| 0a 62 65 74 77 65 65 6e | 20 74 68 65 73 65 20 74 |.between| these t|
|00002960| 77 6f 20 63 61 73 65 73 | 2c 20 62 65 63 61 75 73 |wo cases|, becaus|
|00002970| 65 20 6f 66 20 74 68 65 | 20 69 6d 70 6f 72 74 61 |e of the| importa|
|00002980| 6e 74 20 64 69 73 74 69 | 6e 63 74 69 6f 6e 20 69 |nt disti|nction i|
|00002990| 6e 20 74 68 65 0a 63 6f | 6e 73 65 71 75 65 6e 63 |n the.co|nsequenc|
|000029a0| 65 73 20 77 68 65 6e 20 | 74 68 65 20 75 73 65 72 |es when |the user|
|000029b0| 20 74 72 69 65 73 20 74 | 6f 20 71 75 69 74 20 74 | tries t|o quit t|
|000029c0| 68 65 20 65 64 69 74 6f | 72 3a 0a 49 66 20 74 68 |he edito|r:.If th|
|000029d0| 65 20 64 69 72 65 63 74 | 6f 72 79 20 65 78 69 73 |e direct|ory exis|
|000029e0| 74 73 2c 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 |ts, the |file is |
|000029f0| 63 72 65 61 74 65 64 2c | 20 62 75 74 0a 69 66 20 |created,| but.if |
|00002a00| 6e 6f 74 2c 20 74 68 65 | 20 72 65 73 75 6c 74 73 |not, the| results|
|00002a10| 20 61 72 65 20 6d 6f 72 | 65 20 63 6f 6d 70 6c 69 | are mor|e compli|
|00002a20| 63 61 74 65 64 20 2d 2d | 20 49 20 73 65 65 6d 20 |cated --| I seem |
|00002a30| 74 6f 20 72 65 63 61 6c | 6c 20 6f 6e 20 6f 6e 65 |to recal|l on one|
|00002a40| 0a 6f 63 63 61 73 69 6f | 6e 20 73 69 6d 70 6c 79 |.occasio|n simply|
|00002a50| 20 6c 6f 73 69 6e 67 20 | 77 68 61 74 20 49 20 68 | losing |what I h|
|00002a60| 61 64 20 77 72 69 74 74 | 65 6e 20 6f 6e 20 6d 79 |ad writt|en on my|
|00002a70| 20 73 65 63 6f 6e 64 20 | 74 72 79 0a 61 74 20 71 | second |try.at q|
|00002a80| 75 69 74 74 69 6e 67 3b | 20 74 68 6f 75 67 68 20 |uitting;| though |
|00002a90| 49 20 6a 75 73 74 20 6e | 6f 77 20 64 69 64 20 61 |I just n|ow did a|
|00002aa0| 6e 20 65 78 70 65 72 69 | 6d 65 6e 74 20 61 6e 64 |n experi|ment and|
|00002ab0| 20 74 68 69 73 20 74 69 | 6d 65 0a 72 65 70 65 61 | this ti|me.repea|
|00002ac0| 74 65 64 20 5a 5a 27 73 | 20 61 6e 64 20 3a 78 27 |ted ZZ's| and :x'|
|00002ad0| 73 20 73 69 6d 70 6c 79 | 20 67 61 76 65 20 72 65 |s simply| gave re|
|00002ae0| 70 65 61 74 65 64 20 65 | 72 72 6f 72 20 6d 65 73 |peated e|rror mes|
|00002af0| 73 61 67 65 73 2e 0a 0a | 22 46 69 6c 65 20 61 6c |sages...|"File al|
|00002b00| 72 65 61 64 79 20 65 78 | 69 73 74 73 2e 2e 2e 22 |ready ex|ists..."|
|00002b10| 20 2d 2d 20 54 68 65 20 | 60 60 4c 69 73 74 20 6f | -- The |``List o|
|00002b20| 66 20 63 68 61 6e 67 65 | 73 20 66 72 6f 6d 20 33 |f change|s from 3|
|00002b30| 2e 35 20 74 6f 20 33 2e | 36 27 27 20 73 61 79 73 |.5 to 3.|6'' says|
|00002b40| 0a 60 60 49 66 20 79 6f | 75 20 67 65 74 20 49 2f |.``If yo|u get I/|
|00002b50| 4f 20 65 72 72 6f 72 73 | 2c 20 74 68 65 20 66 69 |O errors|, the fi|
|00002b60| 6c 65 20 69 73 20 63 6f | 6e 73 69 64 65 72 65 64 |le is co|nsidered|
|00002b70| 20 22 6e 6f 74 20 65 64 | 69 74 65 64 22 2e 2e 2e | "not ed|ited"...|
|00002b80| 20 2e 27 27 0a 49 20 70 | 72 65 73 75 6d 65 20 74 | .''.I p|resume t|
|00002b90| 68 61 74 20 74 68 69 73 | 20 63 6f 72 72 65 63 74 |hat this| correct|
|00002ba0| 69 6f 6e 20 69 73 20 73 | 6f 6d 65 68 6f 77 20 74 |ion is s|omehow t|
|00002bb0| 68 65 20 63 61 75 73 65 | 20 6f 66 20 74 68 65 20 |he cause| of the |
|00002bc0| 66 61 63 74 20 74 68 61 | 74 0a 49 20 66 72 65 71 |fact tha|t.I freq|
|00002bd0| 75 65 6e 74 6c 79 20 67 | 65 74 20 74 68 65 20 61 |uently g|et the a|
|00002be0| 62 6f 76 65 20 6d 65 73 | 73 61 67 65 20 77 68 65 |bove mes|sage whe|
|00002bf0| 6e 20 74 72 79 69 6e 67 | 20 74 6f 20 6c 65 61 76 |n trying| to leav|
|00002c00| 65 20 74 68 65 20 65 64 | 69 74 6f 72 0a 6f 6e 20 |e the ed|itor.on |
|00002c10| 61 20 6d 61 63 68 69 6e | 65 20 77 69 74 68 20 76 |a machin|e with v|
|00002c20| 65 72 73 69 6f 6e 20 33 | 2e 37 2c 20 61 6e 64 20 |ersion 3|.7, and |
|00002c30| 68 61 76 65 20 74 6f 20 | 75 73 65 0a 20 20 20 20 |have to |use. |
|00002c40| 20 20 3a 77 21 20 25 7c | 71 0a 74 6f 20 65 78 69 | :w! %||q.to exi|
|00002c50| 74 2e 20 20 42 75 74 20 | 49 27 76 65 20 6e 65 76 |t. But |I've nev|
|00002c60| 65 72 20 73 65 65 6e 20 | 61 6e 79 20 65 76 69 64 |er seen |any evid|
|00002c70| 65 6e 63 65 20 74 68 61 | 74 20 74 68 65 72 65 20 |ence tha|t there |
|00002c80| 77 65 72 65 20 49 2f 4f | 20 65 72 72 6f 72 73 3b |were I/O| errors;|
|00002c90| 0a 69 74 20 6d 61 69 6e | 6c 79 20 73 65 65 6d 73 |.it main|ly seems|
|00002ca0| 20 74 6f 20 68 61 70 70 | 65 6e 20 77 68 65 6e 20 | to happ|en when |
|00002cb0| 49 27 76 65 20 77 72 69 | 74 74 65 6e 20 73 6f 6d |I've wri|tten som|
|00002cc0| 65 20 6c 69 6e 65 73 20 | 74 6f 20 61 6e 6f 74 68 |e lines |to anoth|
|00002cd0| 65 72 0a 66 69 6c 65 20 | 69 6e 20 74 68 65 20 70 |er.file |in the p|
|00002ce0| 72 6f 63 65 73 73 20 6f | 66 20 65 64 69 74 69 6e |rocess o|f editin|
|00002cf0| 67 2e 20 20 53 6f 20 74 | 68 65 20 63 72 69 74 65 |g. So t|he crite|
|00002d00| 72 69 61 20 74 68 65 20 | 65 64 69 74 6f 72 20 69 |ria the |editor i|
|00002d10| 73 20 75 73 69 6e 67 0a | 74 6f 20 64 65 63 69 64 |s using.|to decid|
|00002d20| 65 20 77 68 65 6e 20 74 | 68 65 72 65 20 68 61 76 |e when t|here hav|
|00002d30| 65 20 62 65 65 6e 20 60 | 60 49 2f 4f 20 65 72 72 |e been `|`I/O err|
|00002d40| 6f 72 73 27 27 20 73 68 | 6f 75 6c 64 20 62 65 20 |ors'' sh|ould be |
|00002d50| 72 65 63 68 65 63 6b 65 | 64 2e 0a 0a 22 6e 6f 20 |rechecke|d..."no |
|00002d60| 73 75 63 68 20 63 6f 6d | 6d 61 6e 64 20 66 72 6f |such com|mand fro|
|00002d70| 6d 20 6f 70 65 6e 2f 76 | 69 73 75 61 6c 22 20 2d |m open/v|isual" -|
|00002d80| 2d 20 54 68 69 73 20 63 | 6f 6e 66 75 73 65 64 20 |- This c|onfused |
|00002d90| 6d 65 20 69 6e 20 6d 79 | 20 66 69 72 73 74 0a 66 |me in my| first.f|
|00002da0| 65 77 20 64 61 79 73 20 | 6f 66 20 75 73 69 6e 67 |ew days |of using|
|00002db0| 20 74 68 65 20 65 64 69 | 74 6f 72 2c 20 77 68 65 | the edi|tor, whe|
|00002dc0| 6e 20 49 20 64 69 64 6e | 27 74 20 75 6e 64 65 72 |n I didn|'t under|
|00002dd0| 73 74 61 6e 64 20 74 68 | 61 74 20 6f 6e 65 0a 63 |stand th|at one.c|
|00002de0| 6f 75 6c 64 6e 27 74 20 | 75 73 65 20 69 20 61 6e |ouldn't |use i an|
|00002df0| 64 20 61 20 28 69 6e 20 | 65 69 74 68 65 72 20 74 |d a (in |either t|
|00002e00| 68 65 69 72 20 76 69 20 | 6f 72 20 65 78 20 73 65 |heir vi |or ex se|
|00002e10| 6e 73 65 73 29 20 66 72 | 6f 6d 20 74 68 65 20 62 |nses) fr|om the b|
|00002e20| 6f 74 74 6f 6d 0a 6c 69 | 6e 65 20 6f 66 20 76 69 |ottom.li|ne of vi|
|00002e30| 2e 20 20 41 20 6d 65 73 | 73 61 67 65 20 22 69 20 |. A mes|sage "i |
|00002e40| 2d 2d 20 6e 6f 20 73 75 | 63 68 20 63 6f 6d 6d 61 |-- no su|ch comma|
|00002e50| 6e 64 20 66 72 6f 6d 20 | 6f 70 65 6e 2f 76 69 73 |nd from |open/vis|
|00002e60| 75 61 6c 22 0a 77 61 73 | 20 70 65 72 70 6c 65 78 |ual".was| perplex|
|00002e70| 69 6e 67 20 62 65 63 61 | 75 73 65 20 49 20 6b 6e |ing beca|use I kn|
|00002e80| 65 77 20 74 68 61 74 20 | 22 69 22 20 77 61 73 20 |ew that |"i" was |
|00002e90| 69 6e 64 65 65 64 20 61 | 20 76 69 20 63 6f 6d 6d |indeed a| vi comm|
|00002ea0| 61 6e 64 2e 0a 50 65 72 | 68 61 70 73 20 69 74 20 |and..Per|haps it |
|00002eb0| 73 68 6f 75 6c 64 20 73 | 61 79 20 20 22 6e 6f 20 |should s|ay "no |
|00002ec0| 73 75 63 68 20 63 6f 6d | 6d 61 6e 64 20 66 72 6f |such com|mand fro|
|00002ed0| 6d 20 6f 70 65 6e 2f 76 | 69 73 75 61 6c 20 62 6f |m open/v|isual bo|
|00002ee0| 74 74 6f 6d 20 6c 69 6e | 65 22 2e 0a 0a 4d 49 53 |ttom lin|e"...MIS|
|00002ef0| 43 45 4c 4c 41 4e 45 4f | 55 53 20 50 52 4f 42 4c |CELLANEO|US PROBL|
|00002f00| 45 4d 53 0a 0a 20 20 20 | 20 20 49 6e 20 65 78 20 |EMS.. | In ex |
|00002f10| 73 65 61 72 63 68 20 61 | 6e 64 20 72 65 70 6c 61 |search a|nd repla|
|00002f20| 63 65 6d 65 6e 74 20 70 | 61 74 74 65 72 6e 73 2c |cement p|atterns,|
|00002f30| 20 5c 5c 20 69 73 20 73 | 75 70 70 6f 73 65 64 20 | \\ is s|upposed |
|00002f40| 74 6f 20 72 65 70 72 65 | 73 65 6e 74 0a 61 20 72 |to repre|sent.a r|
|00002f50| 65 61 6c 20 5c 2d 63 68 | 61 72 61 63 74 65 72 2c |eal \-ch|aracter,|
|00002f60| 20 62 75 74 20 73 6f 6d | 65 74 68 69 6e 67 20 67 | but som|ething g|
|00002f70| 6f 65 73 20 77 72 6f 6e | 67 20 77 68 65 6e 20 74 |oes wron|g when t|
|00002f80| 68 69 73 20 6f 63 63 75 | 72 73 0a 61 74 20 74 68 |his occu|rs.at th|
|00002f90| 65 20 65 6e 64 20 6f 66 | 20 61 20 67 6c 6f 62 61 |e end of| a globa|
|00002fa0| 6c 20 63 6f 6d 6d 61 6e | 64 2e 20 20 45 2e 67 2e |l comman|d. E.g.|
|00002fb0| 2c 20 74 68 6f 75 67 68 | 0a 20 20 20 20 20 3a 73 |, though|. :s|
|00002fc0| 2f 5e 2f 5c 5c 0a 77 6f | 72 6b 73 20 4f 4b 20 28 |/^/\\.wo|rks OK (|
|00002fd0| 69 6e 20 76 69 20 6f 72 | 20 65 78 29 2c 20 74 68 |in vi or| ex), th|
|00002fe0| 65 20 76 61 72 69 61 6e | 74 0a 20 20 20 20 20 3a |e varian|t. :|
|00002ff0| 2e 67 2f 5e 2f 73 2f 2f | 5c 5c 0a 64 65 66 69 6e |.g/^/s//|\\.defin|
|00003000| 69 74 65 6c 79 20 64 6f | 65 73 20 6e 6f 74 2e 20 |itely do|es not. |
|00003010| 20 49 6e 20 76 69 20 69 | 74 20 74 75 72 6e 73 20 | In vi i|t turns |
|00003020| 65 76 65 72 79 74 68 69 | 6e 67 20 6f 66 66 2c 20 |everythi|ng off, |
|00003030| 69 6e 20 65 78 20 69 74 | 20 73 65 65 6d 73 20 74 |in ex it| seems t|
|00003040| 6f 0a 62 65 68 61 76 65 | 20 61 73 20 74 68 6f 75 |o.behave| as thou|
|00003050| 67 68 20 74 68 65 72 65 | 20 77 65 72 65 20 6a 75 |gh there| were ju|
|00003060| 73 74 20 61 20 73 69 6e | 67 6c 65 20 5c 2c 20 61 |st a sin|gle \, a|
|00003070| 6e 64 20 69 6e 20 61 20 | 73 63 72 69 70 74 66 69 |nd in a |scriptfi|
|00003080| 6c 65 2c 0a 69 74 20 2d | 2d 20 64 6f 65 73 20 73 |le,.it -|- does s|
|00003090| 6f 6d 65 74 68 69 6e 67 | 20 73 74 69 6c 6c 20 64 |omething| still d|
|000030a0| 69 66 66 65 72 65 6e 74 | 2c 20 77 68 69 63 68 20 |ifferent|, which |
|000030b0| 79 6f 75 20 63 61 6e 20 | 64 69 73 63 6f 76 65 72 |you can |discover|
|000030c0| 20 69 66 20 79 6f 75 0a | 64 6f 6e 27 74 20 6b 6e | if you.|don't kn|
|000030d0| 6f 77 21 0a 0a 54 68 65 | 20 45 78 20 52 65 66 65 |ow!..The| Ex Refe|
|000030e0| 72 65 6e 63 65 20 4d 61 | 6e 75 61 6c 20 73 61 79 |rence Ma|nual say|
|000030f0| 73 2c 20 60 60 46 6f 72 | 20 73 61 6e 69 74 79 20 |s, ``For| sanity |
|00003100| 77 69 74 68 20 75 73 65 | 20 66 72 6f 6d 20 77 69 |with use| from wi|
|00003110| 74 68 69 6e 0a 76 69 73 | 75 61 6c 20 6d 6f 64 65 |thin.vis|ual mode|
|00003120| 2c 20 65 78 20 69 67 6e | 6f 72 65 73 20 61 20 22 |, ex ign|ores a "|
|00003130| 3a 22 20 70 72 65 63 65 | 64 69 6e 67 20 61 6e 79 |:" prece|ding any|
|00003140| 20 63 6f 6d 6d 61 6e 64 | 2e 27 27 20 20 42 75 74 | command|.'' But|
|00003150| 20 69 74 0a 69 67 6e 6f | 72 65 73 20 69 74 20 69 | it.igno|res it i|
|00003160| 6e 20 74 68 65 20 77 72 | 6f 6e 67 20 70 6c 61 63 |n the wr|ong plac|
|00003170| 65 21 20 2d 2d 20 6e 6f | 74 20 61 74 20 74 68 65 |e! -- no|t at the|
|00003180| 20 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 74 68 | beginni|ng of th|
|00003190| 65 0a 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 2c 20 |e.comman|d line, |
|000031a0| 62 75 74 20 6a 75 73 74 | 20 62 65 66 6f 72 65 20 |but just| before |
|000031b0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 65 74 74 |the comm|and lett|
|000031c0| 65 72 20 69 74 73 65 6c | 66 2e 20 20 49 2e 65 2e |er itsel|f. I.e.|
|000031d0| 2c 0a 69 74 20 61 63 63 | 65 70 74 73 20 31 2c 33 |,.it acc|epts 1,3|
|000031e0| 3a 73 2f 5e 2f 20 20 20 | 20 20 2f 2c 20 62 75 74 |:s/^/ | /, but|
|000031f0| 20 6e 6f 74 20 3a 31 2c | 33 73 2f 5e 2f 20 20 20 | not :1,|3s/^/ |
|00003200| 20 2f 2e 0a 0a 53 55 47 | 47 45 53 54 49 4f 4e 53 | /...SUG|GESTIONS|
|00003210| 20 46 4f 52 20 4d 49 4e | 4f 52 20 41 44 44 45 44 | FOR MIN|OR ADDED|
|00003220| 20 43 41 50 41 42 49 4c | 49 54 49 45 53 0a 0a 20 | CAPABIL|ITIES.. |
|00003230| 20 20 49 6e 20 61 20 6d | 75 6c 74 69 6c 69 6e 65 | In a m|ultiline|
|00003240| 20 73 75 62 73 74 69 74 | 75 74 65 20 63 6f 6d 6d | substit|ute comm|
|00003250| 61 6e 64 20 77 69 74 68 | 20 74 68 65 20 22 63 22 |and with| the "c"|
|00003260| 20 6f 70 74 69 6f 6e 2c | 20 77 68 65 6e 0a 65 61 | option,| when.ea|
|00003270| 63 68 20 6c 69 6e 65 20 | 69 73 20 64 69 73 70 6c |ch line |is displ|
|00003280| 61 79 65 64 20 6f 6e 65 | 20 68 61 73 20 74 68 72 |ayed one| has thr|
|00003290| 65 65 20 63 68 6f 69 63 | 65 73 3a 20 79 2c 20 6e |ee choic|es: y, n|
|000032a0| 20 6f 72 20 62 72 65 61 | 6b 2e 20 20 54 68 65 72 | or brea|k. Ther|
|000032b0| 65 0a 61 72 65 20 73 6f | 6d 65 20 66 75 72 74 68 |e.are so|me furth|
|000032c0| 65 72 20 6f 70 74 69 6f | 6e 73 20 74 68 61 74 20 |er optio|ns that |
|000032d0| 77 6f 75 6c 64 20 62 65 | 20 75 73 65 66 75 6c 2e |would be| useful.|
|000032e0| 20 20 4f 6e 65 20 77 6f | 75 6c 64 20 62 65 20 22 | One wo|uld be "|
|000032f0| 70 22 20 2d 2d 0a 61 74 | 20 70 72 65 73 65 6e 74 |p" --.at| present|
|00003300| 2c 20 22 70 22 20 63 61 | 6e 20 6f 6e 6c 79 20 62 |, "p" ca|n only b|
|00003310| 65 20 69 6e 63 6c 75 64 | 65 64 20 6f 6e 20 74 68 |e includ|ed on th|
|00003320| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 2c 20 |e comman|d line, |
|00003330| 77 68 69 63 68 0a 6d 65 | 61 6e 73 20 74 68 61 74 |which.me|ans that|
|00003340| 20 6f 6e 65 20 68 61 73 | 20 61 20 63 68 6f 69 63 | one has| a choic|
|00003350| 65 20 62 65 74 77 65 65 | 6e 20 73 65 65 69 6e 67 |e betwee|n seeing|
|00003360| 20 74 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 65 | the res|ult of e|
|00003370| 76 65 72 79 0a 73 75 62 | 73 74 69 74 75 74 69 6f |very.sub|stitutio|
|00003380| 6e 20 6f 72 20 6e 6f 6e | 65 2e 20 20 49 6e 20 70 |n or non|e. In p|
|00003390| 72 61 63 74 69 63 65 2c | 20 6f 6e 65 20 77 6f 75 |ractice,| one wou|
|000033a0| 6c 64 20 67 65 6e 65 72 | 61 6c 6c 79 20 6c 69 6b |ld gener|ally lik|
|000033b0| 65 20 74 6f 20 73 65 65 | 0a 74 68 65 20 72 65 73 |e to see|.the res|
|000033c0| 75 6c 74 73 20 6f 66 20 | 74 68 65 20 66 69 72 73 |ults of |the firs|
|000033d0| 74 20 66 65 77 20 63 61 | 73 65 73 20 74 6f 20 6d |t few ca|ses to m|
|000033e0| 61 6b 65 20 73 75 72 65 | 20 74 68 61 74 20 74 68 |ake sure| that th|
|000033f0| 65 20 63 6f 6d 6d 61 6e | 64 20 6f 6e 65 20 68 61 |e comman|d one ha|
|00003400| 73 0a 77 72 69 74 74 65 | 6e 20 64 6f 65 73 20 77 |s.writte|n does w|
|00003410| 68 61 74 20 6f 6e 65 20 | 6d 65 61 6e 74 20 69 74 |hat one |meant it|
|00003420| 20 74 6f 2c 20 61 6e 64 | 20 6d 61 79 62 65 20 61 | to, and| maybe a|
|00003430| 20 66 65 77 20 74 72 69 | 63 6b 79 20 63 61 73 65 | few tri|cky case|
|00003440| 73 20 74 68 61 74 0a 63 | 6f 6d 65 20 75 70 3b 20 |s that.c|ome up; |
|00003450| 62 75 74 20 6e 6f 74 20 | 65 76 65 72 79 20 63 61 |but not |every ca|
|00003460| 73 65 21 20 20 20 41 6e | 6f 74 68 65 72 20 6d 69 |se! An|other mi|
|00003470| 67 68 74 20 62 65 20 22 | 75 22 20 2d 2d 20 74 6f |ght be "|u" -- to|
|00003480| 20 75 6e 64 6f 20 74 68 | 65 20 6c 61 73 74 0a 63 | undo th|e last.c|
|00003490| 61 73 65 20 66 6f 72 20 | 77 68 69 63 68 20 6f 6e |ase for |which on|
|000034a0| 65 20 67 61 76 65 20 61 | 20 22 79 22 2e 20 20 53 |e gave a| "y". S|
|000034b0| 74 69 6c 6c 20 61 6e 6f | 74 68 65 72 20 6d 69 67 |till ano|ther mig|
|000034c0| 68 74 20 62 65 20 61 6e | 20 6f 70 74 69 6f 6e 20 |ht be an| option |
|000034d0| 74 68 61 74 0a 77 6f 75 | 6c 64 20 6d 65 61 6e 20 |that.wou|ld mean |
|000034e0| 60 60 75 6e 64 6f 20 74 | 68 65 20 22 63 22 20 6f |``undo t|he "c" o|
|000034f0| 70 74 69 6f 6e 20 2d 2d | 20 49 20 73 65 65 20 74 |ption --| I see t|
|00003500| 68 61 74 20 74 68 65 20 | 73 75 62 73 74 69 74 75 |hat the |substitu|
|00003510| 74 65 20 63 6f 6d 6d 61 | 6e 64 0a 69 73 20 64 6f |te comma|nd.is do|
|00003520| 69 6e 67 20 77 68 61 74 | 20 49 20 77 61 6e 74 65 |ing what| I wante|
|00003530| 64 2c 20 67 6f 20 61 68 | 65 61 64 20 61 6e 64 20 |d, go ah|ead and |
|00003540| 66 69 6e 69 73 68 20 69 | 74 20 77 69 74 68 6f 75 |finish i|t withou|
|00003550| 74 20 6d 65 2e 27 27 0a | 20 20 20 20 49 6e 20 61 |t me.''.| In a|
|00003560| 20 63 6f 6d 6d 61 6e 64 | 20 20 67 2f 70 61 74 74 | command| g/patt|
|00003570| 65 72 6e 2f 70 2c 20 20 | 74 68 65 20 70 61 74 74 |ern/p, |the patt|
|00003580| 65 72 6e 20 69 6e 20 71 | 75 65 73 74 69 6f 6e 20 |ern in q|uestion |
|00003590| 69 73 20 6f 63 63 61 73 | 69 6f 6e 61 6c 6c 79 0a |is occas|ionally.|
|000035a0| 73 75 63 68 20 74 68 61 | 74 20 69 74 20 74 61 6b |such tha|t it tak|
|000035b0| 65 73 20 61 20 77 68 69 | 6c 65 20 74 6f 20 66 69 |es a whi|le to fi|
|000035c0| 67 75 72 65 20 6f 75 74 | 20 77 68 65 72 65 20 6f |gure out| where o|
|000035d0| 6e 20 74 68 65 20 6c 69 | 6e 65 20 69 74 20 6f 63 |n the li|ne it oc|
|000035e0| 63 75 72 73 2e 0a 46 6f | 72 20 74 68 69 73 20 70 |curs..Fo|r this p|
|000035f0| 75 72 70 6f 73 65 2c 20 | 61 6e 20 6f 70 74 69 6f |urpose, |an optio|
|00003600| 6e 20 74 68 61 74 20 60 | 60 70 6f 69 6e 74 65 64 |n that `|`pointed|
|00003610| 20 6f 75 74 27 27 20 74 | 68 65 20 69 6e 73 74 61 | out'' t|he insta|
|00003620| 6e 63 65 20 6f 66 20 74 | 68 65 0a 70 61 74 74 65 |nce of t|he.patte|
|00003630| 72 6e 2c 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 |rn, in t|he same |
|00003640| 6d 61 6e 6e 65 72 20 74 | 68 61 74 20 74 68 65 20 |manner t|hat the |
|00003650| 70 61 74 74 65 72 6e 20 | 74 6f 20 62 65 20 72 65 |pattern |to be re|
|00003660| 70 6c 61 63 65 64 20 69 | 73 20 70 6f 69 6e 74 65 |placed i|s pointe|
|00003670| 64 0a 6f 75 74 20 69 6e | 20 73 75 62 73 74 69 74 |d.out in| substit|
|00003680| 75 74 65 20 63 6f 6d 6d | 61 6e 64 20 77 69 74 68 |ute comm|and with|
|00003690| 20 6f 70 74 69 6f 6e 20 | 63 2c 20 77 6f 75 6c 64 | option |c, would|
|000036a0| 20 62 65 20 64 65 73 69 | 72 61 62 6c 65 2e 0a 20 | be desi|rable.. |
|000036b0| 20 20 20 57 68 65 6e 20 | 20 67 2f 70 61 74 74 65 | When | g/patte|
|000036c0| 72 6e 2f 70 20 20 67 69 | 76 65 73 20 6d 6f 72 65 |rn/p gi|ves more|
|000036d0| 20 74 68 61 6e 20 61 20 | 73 63 72 65 65 6e 66 75 | than a |screenfu|
|000036e0| 6c 20 6f 66 20 6c 69 6e | 65 73 2c 20 69 74 20 77 |l of lin|es, it w|
|000036f0| 6f 75 6c 64 0a 62 65 20 | 6e 69 63 65 20 74 6f 20 |ould.be |nice to |
|00003700| 68 61 76 65 20 69 74 20 | 70 69 70 65 64 20 74 68 |have it |piped th|
|00003710| 72 6f 75 67 68 20 74 68 | 65 20 65 71 75 69 76 61 |rough th|e equiva|
|00003720| 6c 65 6e 74 20 6f 66 20 | 60 60 6d 6f 72 65 27 27 |lent of |``more''|
|00003730| 2e 0a 0a 20 20 20 20 65 | 78 20 68 61 73 20 74 68 |... e|x has th|
|00003740| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 6f |e comman|d line o|
|00003750| 70 74 69 6f 6e 20 22 2d | 22 2c 20 77 68 69 63 68 |ption "-|", which|
|00003760| 20 60 60 69 73 20 75 73 | 65 66 75 6c 20 69 6e 20 | ``is us|eful in |
|00003770| 70 72 6f 63 65 73 73 69 | 6e 67 0a 65 64 69 74 6f |processi|ng.edito|
|00003780| 72 20 73 63 72 69 70 74 | 73 27 27 2e 20 20 42 75 |r script|s''. Bu|
|00003790| 74 20 69 66 20 6f 6e 65 | 20 77 61 6e 74 73 20 74 |t if one| wants t|
|000037a0| 6f 20 75 73 65 20 61 20 | 73 63 72 69 70 74 20 69 |o use a |script i|
|000037b0| 6e 20 74 68 65 20 63 6f | 75 72 73 65 20 6f 66 0a |n the co|urse of.|
|000037c0| 61 6e 20 6f 74 68 65 72 | 77 69 73 65 20 69 6e 74 |an other|wise int|
|000037d0| 65 72 61 63 74 69 76 65 | 20 65 64 69 74 69 6e 67 |eractive| editing|
|000037e0| 20 73 65 73 73 69 6f 6e | 2c 20 69 74 20 77 6f 75 | session|, it wou|
|000037f0| 6c 64 20 62 65 20 64 65 | 73 69 72 61 62 6c 65 20 |ld be de|sirable |
|00003800| 74 6f 20 68 61 76 65 0a | 61 20 63 6f 72 72 65 73 |to have.|a corres|
|00003810| 70 6f 6e 64 69 6e 67 20 | 72 65 73 65 74 74 61 62 |ponding |resettab|
|00003820| 6c 65 20 6f 70 74 69 6f | 6e 20 60 60 3a 73 65 20 |le optio|n ``:se |
|00003830| 2d 27 27 20 28 6f 72 20 | 60 60 3a 73 65 20 6e 6f |-'' (or |``:se no|
|00003840| 66 62 27 27 29 2e 0a 0a | 20 20 20 20 20 49 6e 20 |fb'')...| In |
|00003850| 73 74 72 69 6e 67 73 20 | 69 6e 20 70 61 74 74 65 |strings |in patte|
|00003860| 72 6e 2d 73 65 61 72 63 | 68 65 73 2c 20 69 74 20 |rn-searc|hes, it |
|00003870| 77 6f 75 6c 64 20 62 65 | 20 75 73 65 66 75 6c 20 |would be| useful |
|00003880| 74 6f 20 68 61 76 65 0a | 5e 20 61 6e 64 20 24 20 |to have.|^ and $ |
|00003890| 72 65 74 61 69 6e 20 74 | 68 65 69 72 20 60 60 6d |retain t|heir ``m|
|000038a0| 61 67 69 63 27 27 2c 20 | 73 6f 20 74 68 61 74 20 |agic'', |so that |
|000038b0| 2f 78 5b 61 24 5d 2f 20 | 63 6f 75 6c 64 0a 73 65 |/x[a$]/ |could.se|
|000038c0| 61 72 63 68 20 66 6f 72 | 20 61 6c 6c 20 6f 63 63 |arch for| all occ|
|000038d0| 75 72 72 65 6e 63 65 73 | 20 6f 66 20 20 78 20 20 |urrences| of x |
|000038e0| 62 65 66 6f 72 65 20 61 | 6e 20 20 61 20 20 6f 72 |before a|n a or|
|000038f0| 20 61 20 6e 65 77 6c 69 | 6e 65 2e 0a 28 4f 66 20 | a newli|ne..(Of |
|00003900| 63 6f 75 72 73 65 2c 20 | 6f 6e 65 20 77 6f 75 6c |course, |one woul|
|00003910| 64 20 74 68 65 6e 20 68 | 61 76 65 20 74 6f 20 64 |d then h|ave to d|
|00003920| 65 63 69 64 65 20 77 68 | 65 74 68 65 72 20 20 2f |ecide wh|ether /|
|00003930| 78 5b 5e 79 5d 2f 20 73 | 68 6f 75 6c 64 0a 69 6e |x[^y]/ s|hould.in|
|00003940| 63 6c 75 64 65 20 74 68 | 65 20 63 61 73 65 20 6f |clude th|e case o|
|00003950| 66 20 20 78 20 20 66 6f | 6c 6c 6f 77 65 64 20 62 |f x fo|llowed b|
|00003960| 79 20 61 20 6e 65 77 6c | 69 6e 65 20 6f 72 20 6e |y a newl|ine or n|
|00003970| 6f 74 2e 29 0a 0a 20 20 | 20 20 4a 75 73 74 20 61 |ot.).. | Just a|
|00003980| 73 20 65 78 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |s ex all|ows the |
|00003990| 63 6f 6d 6d 61 6e 64 20 | 3a 76 69 2c 20 73 6f 20 |command |:vi, so |
|000039a0| 49 20 74 68 69 6e 6b 20 | 74 68 61 74 20 76 69 20 |I think |that vi |
|000039b0| 73 68 6f 75 6c 64 0a 68 | 61 76 65 20 73 6f 6d 65 |should.h|ave some|
|000039c0| 20 62 6f 74 74 6f 6d 2d | 6c 69 6e 65 20 63 6f 6d | bottom-|line com|
|000039d0| 6d 61 6e 64 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |mand equ|ivalent |
|000039e0| 74 6f 20 74 68 65 20 72 | 65 67 75 6c 61 72 2d 6d |to the r|egular-m|
|000039f0| 6f 64 65 0a 63 6f 6d 6d | 61 6e 64 20 20 51 2e 20 |ode.comm|and Q. |
|00003a00| 20 57 68 65 6e 20 6f 6e | 65 20 68 61 73 20 64 6f | When on|e has do|
|00003a10| 6e 65 20 73 6f 6d 65 20 | 74 65 78 74 2d 63 68 61 |ne some |text-cha|
|00003a20| 6e 67 69 6e 67 20 62 6f | 74 74 6f 6d 2d 6c 69 6e |nging bo|ttom-lin|
|00003a30| 65 0a 63 6f 6d 6d 61 6e | 64 73 2c 20 61 6e 64 20 |e.comman|ds, and |
|00003a40| 72 65 61 6c 69 7a 65 73 | 20 6f 6e 65 20 77 61 6e |realizes| one wan|
|00003a50| 74 73 20 74 6f 20 67 6f | 20 69 6e 74 6f 20 65 78 |ts to go| into ex|
|00003a60| 2c 20 69 74 20 63 61 6e | 20 62 65 20 74 69 6d 65 |, it can| be time|
|00003a70| 2d 0a 63 6f 6e 73 75 6d | 69 6e 67 20 74 6f 20 68 |-.consum|ing to h|
|00003a80| 69 74 20 72 65 74 75 72 | 6e 20 61 6e 64 20 74 68 |it retur|n and th|
|00003a90| 65 6e 20 51 2c 20 61 6e | 64 20 77 61 69 74 20 66 |en Q, an|d wait f|
|00003aa0| 6f 72 20 74 68 65 20 73 | 63 72 65 65 6e 20 74 6f |or the s|creen to|
|00003ab0| 20 62 65 0a 72 65 64 72 | 61 77 6e 20 66 6f 72 20 | be.redr|awn for |
|00003ac0| 76 69 20 62 65 66 6f 72 | 65 20 6f 6e 65 20 67 65 |vi befor|e one ge|
|00003ad0| 74 73 20 74 68 65 20 65 | 78 20 70 72 6f 6d 70 74 |ts the e|x prompt|
|00003ae0| 2e 0a 0a 20 20 20 20 20 | 54 68 65 20 6f 70 74 69 |... |The opti|
|00003af0| 6f 6e 20 6f 66 20 70 75 | 74 74 69 6e 67 20 73 65 |on of pu|tting se|
|00003b00| 76 65 72 61 6c 20 63 6f | 6d 6d 61 6e 64 73 20 6f |veral co|mmands o|
|00003b10| 6e 20 6f 6e 65 20 6c 69 | 6e 65 2c 20 73 65 70 61 |n one li|ne, sepa|
|00003b20| 72 61 74 65 64 0a 62 79 | 2c 20 22 7c 22 20 69 73 |rated.by|, "|" is|
|00003b30| 20 70 61 72 74 69 63 75 | 6c 61 72 6c 79 20 75 73 | particu|larly us|
|00003b40| 65 66 75 6c 20 69 6e 20 | 74 68 65 20 76 69 20 62 |eful in |the vi b|
|00003b50| 6f 74 74 6f 6d 2d 6c 69 | 6e 65 20 6d 6f 64 65 2c |ottom-li|ne mode,|
|00003b60| 20 62 65 63 61 75 73 65 | 0a 69 74 20 61 76 6f 69 | because|.it avoi|
|00003b70| 64 73 20 68 61 76 69 6e | 67 20 74 68 65 20 73 63 |ds havin|g the sc|
|00003b80| 72 65 65 6e 20 72 65 64 | 72 61 77 6e 20 73 65 76 |reen red|rawn sev|
|00003b90| 65 72 61 6c 20 74 69 6d | 65 73 2e 20 20 49 74 20 |eral tim|es. It |
|00003ba0| 77 6f 75 6c 64 20 62 65 | 0a 75 73 65 66 75 6c 20 |would be|.useful |
|00003bb0| 74 6f 20 62 65 20 61 62 | 6c 65 20 73 6f 6d 65 74 |to be ab|le somet|
|00003bc0| 69 6d 65 73 20 64 6f 20 | 74 68 65 20 73 61 6d 65 |imes do |the same|
|00003bd0| 20 74 68 69 6e 67 20 77 | 69 74 68 20 6e 6f 6e 2d | thing w|ith non-|
|00003be0| 62 6f 74 74 6f 6d 2d 6c | 69 6e 65 0a 63 6f 6d 6d |bottom-l|ine.comm|
|00003bf0| 61 6e 64 73 2c 20 65 2e | 67 2e 20 69 6e 20 65 64 |ands, e.|g. in ed|
|00003c00| 69 74 69 6e 67 20 61 20 | 74 72 6f 66 66 20 66 69 |iting a |troff fi|
|00003c10| 6c 65 20 61 74 20 61 20 | 6c 6f 77 20 62 61 75 64 |le at a |low baud|
|00003c20| 20 72 61 74 65 20 6f 6e | 20 61 20 64 75 6d 62 0a | rate on| a dumb.|
|00003c30| 74 65 72 6d 69 6e 61 6c | 20 6f 6e 65 20 6d 69 67 |terminal| one mig|
|00003c40| 68 74 20 6c 69 6b 65 20 | 74 6f 20 62 65 20 61 62 |ht like |to be ab|
|00003c50| 6c 65 20 74 6f 20 64 6f | 20 20 69 5c 66 49 5e 5d |le to do| i\fI^]|
|00003c60| 33 45 61 5c 66 52 5e 5d | 20 20 77 69 74 68 6f 75 |3Ea\fR^]| withou|
|00003c70| 74 0a 77 61 74 63 68 69 | 6e 67 20 74 68 65 20 6c |t.watchi|ng the l|
|00003c80| 69 6e 65 20 67 65 74 20 | 72 65 64 72 61 77 6e 20 |ine get |redrawn |
|00003c90| 74 77 69 63 65 2e 20 20 | 50 65 72 68 61 70 73 20 |twice. |Perhaps |
|00003ca0| 73 6f 6d 65 20 6b 65 79 | 20 74 68 61 74 20 77 6f |some key| that wo|
|00003cb0| 75 6c 64 0a 63 61 75 73 | 65 20 61 6e 79 20 73 65 |uld.caus|e any se|
|00003cc0| 71 75 65 6e 63 65 20 6f | 66 20 63 6f 6d 6d 61 6e |quence o|f comman|
|00003cd0| 64 73 20 74 6f 20 62 65 | 20 60 60 68 65 6c 64 27 |ds to be| ``held'|
|00003ce0| 27 20 75 6e 74 69 6c 20 | 73 6f 6d 65 20 63 6f 6d |' until |some com|
|00003cf0| 70 6c 65 6d 65 6e 74 61 | 72 79 0a 6b 65 79 20 77 |plementa|ry.key w|
|00003d00| 61 73 20 68 69 74 20 77 | 6f 75 6c 64 20 62 65 20 |as hit w|ould be |
|00003d10| 75 73 65 66 75 6c 2e 0a | 20 20 20 20 20 49 74 20 |useful..| It |
|00003d20| 77 6f 75 6c 64 20 61 6c | 73 6f 20 62 65 20 64 65 |would al|so be de|
|00003d30| 73 69 72 61 62 6c 65 20 | 74 6f 20 68 61 76 65 20 |sirable |to have |
|00003d40| 61 20 73 65 71 75 65 6e | 63 65 20 6f 66 20 63 6f |a sequen|ce of co|
|00003d50| 6d 6d 61 6e 64 73 20 74 | 68 61 74 20 68 61 64 0a |mmands t|hat had.|
|00003d60| 62 65 65 6e 20 67 69 76 | 65 6e 20 69 6e 20 74 68 |been giv|en in th|
|00003d70| 69 73 20 77 61 79 20 61 | 76 61 69 6c 61 62 6c 65 |is way a|vailable|
|00003d80| 20 61 73 20 6f 6e 65 20 | 75 6e 69 74 20 74 6f 20 | as one |unit to |
|00003d90| 62 65 20 72 65 70 65 61 | 74 65 64 20 62 79 20 60 |be repea|ted by `|
|00003da0| 60 2e 27 27 2c 0a 69 66 | 20 64 65 73 69 72 65 64 |`.'',.if| desired|
|00003db0| 2e 0a 0a 20 20 20 20 20 | 54 68 65 20 70 61 72 65 |... |The pare|
|00003dc0| 6e 74 68 65 73 69 73 2d | 6d 61 74 63 68 69 6e 67 |nthesis-|matching|
|00003dd0| 20 66 61 63 69 6c 69 74 | 79 20 77 69 74 68 20 25 | facilit|y with %|
|00003de0| 20 6d 69 67 68 74 20 62 | 65 20 65 78 74 65 6e 64 | might b|e extend|
|00003df0| 65 64 0a 74 6f 20 6d 61 | 74 63 68 20 60 20 77 69 |ed.to ma|tch ` wi|
|00003e00| 74 68 20 27 20 61 6e 64 | 20 3c 20 20 77 69 74 68 |th ' and| < with|
|00003e10| 20 20 3e 2e 0a 0a 20 20 | 20 20 20 49 20 77 69 6c | >... | I wil|
|00003e20| 6c 20 6d 65 6e 74 69 6f | 6e 20 6f 6e 65 20 66 61 |l mentio|n one fa|
|00003e30| 63 69 6c 69 74 79 20 74 | 68 61 74 20 49 20 64 69 |cility t|hat I di|
|00003e40| 73 63 6f 76 65 72 65 64 | 20 62 79 20 73 75 72 70 |scovered| by surp|
|00003e50| 72 69 7a 65 20 69 73 0a | 70 6f 73 73 65 73 73 65 |rize is.|possesse|
|00003e60| 64 20 62 79 20 20 65 64 | 20 20 62 75 74 20 6e 6f |d by ed| but no|
|00003e70| 74 20 20 65 78 20 20 2d | 2d 20 20 73 65 71 75 65 |t ex -|- seque|
|00003e80| 6e 63 65 73 20 73 75 63 | 68 20 61 73 20 20 5c 31 |nces suc|h as \1|
|00003e90| 20 20 63 61 6e 20 62 65 | 20 75 73 65 64 0a 77 69 | can be| used.wi|
|00003ea0| 74 68 69 6e 20 20 65 64 | 20 20 73 65 61 72 63 68 |thin ed| search|
|00003eb0| 2d 70 61 74 74 65 72 6e | 73 2e 20 20 45 2e 67 2e |-pattern|s. E.g.|
|00003ec0| 20 28 66 6f 72 20 74 68 | 65 20 6d 6f 73 74 20 74 | (for th|e most t|
|00003ed0| 72 69 76 69 61 6c 20 63 | 61 73 65 29 0a 20 20 20 |rivial c|ase). |
|00003ee0| 20 20 2f 5c 28 2e 5c 29 | 5c 31 2f 0a 77 69 6c 6c | /\(.\)|\1/.will|
|00003ef0| 20 73 65 61 72 63 68 20 | 66 6f 72 20 64 6f 75 62 | search |for doub|
|00003f00| 6c 65 64 20 6c 65 74 74 | 65 72 73 2e 0a 0a 0a 44 |led lett|ers....D|
|00003f10| 45 42 41 54 41 42 4c 45 | 20 53 55 47 47 45 53 54 |EBATABLE| SUGGEST|
|00003f20| 49 4f 4e 53 0a 20 20 20 | 20 20 49 20 77 69 6c 6c |IONS. | I will|
|00003f30| 20 6d 65 6e 74 69 6f 6e | 20 68 65 72 65 20 73 6f | mention| here so|
|00003f40| 6d 65 20 70 6f 73 73 69 | 62 6c 65 20 63 68 61 6e |me possi|ble chan|
|00003f50| 67 65 73 20 77 68 69 63 | 68 20 68 61 76 65 20 74 |ges whic|h have t|
|00003f60| 68 65 0a 64 69 66 66 69 | 63 75 6c 74 79 20 74 68 |he.diffi|culty th|
|00003f70| 61 74 20 74 68 65 79 20 | 77 6f 75 6c 64 20 63 68 |at they |would ch|
|00003f80| 61 6e 67 65 20 74 68 65 | 20 6d 65 61 6e 69 6e 67 |ange the| meaning|
|00003f90| 20 6f 66 20 65 78 69 73 | 74 69 6e 67 20 63 6f 6d | of exis|ting com|
|00003fa0| 6d 61 6e 64 73 2c 0a 73 | 6f 20 74 68 61 74 20 69 |mands,.s|o that i|
|00003fb0| 74 20 63 6f 75 6c 64 20 | 62 65 20 61 72 67 75 65 |t could |be argue|
|00003fc0| 64 20 74 68 61 74 20 74 | 68 65 20 64 69 73 61 64 |d that t|he disad|
|00003fd0| 76 61 6e 74 61 67 65 20 | 6f 66 20 75 73 65 72 73 |vantage |of users|
|00003fe0| 20 68 61 76 69 6e 67 0a | 74 6f 20 63 68 61 6e 67 | having.|to chang|
|00003ff0| 65 20 74 68 65 69 72 20 | 68 61 62 69 74 73 20 6d |e their |habits m|
|00004000| 69 67 68 74 20 6f 75 74 | 77 65 69 67 68 20 74 68 |ight out|weigh th|
|00004010| 65 20 61 64 76 61 6e 74 | 61 67 65 73 2e 0a 0a 20 |e advant|ages... |
|00004020| 20 20 20 20 46 69 72 73 | 74 2c 20 6f 6e 65 20 6d | Firs|t, one m|
|00004030| 69 67 68 74 20 74 72 79 | 20 74 6f 20 72 65 73 6f |ight try| to reso|
|00004040| 6c 76 65 2c 20 6f 6e 65 | 20 77 61 79 20 6f 72 20 |lve, one| way or |
|00004050| 61 6e 6f 74 68 65 72 2c | 20 74 68 65 0a 63 6f 6e |another,| the.con|
|00004060| 74 72 61 64 69 63 74 69 | 6f 6e 20 62 65 74 77 65 |tradicti|on betwe|
|00004070| 65 6e 20 74 68 65 20 63 | 6f 75 6e 74 20 61 72 67 |en the c|ount arg|
|00004080| 75 6d 65 6e 74 73 20 74 | 61 6b 65 6e 20 62 79 20 |uments t|aken by |
|00004090| 74 68 65 20 6a 6f 69 6e | 20 63 6f 6d 6d 61 6e 64 |the join| command|
|000040a0| 73 0a 69 6e 20 20 76 69 | 20 61 6e 64 20 20 65 78 |s.in vi| and ex|
|000040b0| 3a 20 20 49 6e 20 65 78 | 2c 20 6a 4e 20 6a 6f 69 |: In ex|, jN joi|
|000040c0| 6e 73 20 4e 2b 31 20 6c | 69 6e 65 73 3b 20 69 6e |ns N+1 l|ines; in|
|000040d0| 20 76 69 2c 20 4e 4a 20 | 6a 6f 69 6e 73 20 4e 20 | vi, NJ |joins N |
|000040e0| 6c 69 6e 65 73 0a 28 65 | 78 63 65 70 74 20 69 66 |lines.(e|xcept if|
|000040f0| 20 4e 3d 31 29 2e 0a 0a | 20 20 20 20 20 53 65 63 | N=1)...| Sec|
|00004100| 6f 6e 64 2c 20 74 68 65 | 20 6d 6f 76 65 6d 65 6e |ond, the| movemen|
|00004110| 74 20 63 6f 6d 6d 61 6e | 64 73 20 20 74 78 20 20 |t comman|ds tx |
|00004120| 61 6e 64 20 20 54 78 20 | 20 6f 66 20 76 69 20 28 |and Tx | of vi (|
|00004130| 78 20 61 6e 79 20 63 68 | 61 72 61 63 74 65 72 29 |x any ch|aracter)|
|00004140| 0a 73 65 65 6d 20 70 6f | 6f 72 6c 79 20 64 65 66 |.seem po|orly def|
|00004150| 69 6e 65 64 2e 20 20 4a | 75 73 74 20 61 73 20 66 |ined. J|ust as f|
|00004160| 78 20 77 69 6c 6c 20 69 | 67 6e 6f 72 65 20 74 68 |x will i|gnore th|
|00004170| 65 20 63 68 61 72 61 63 | 74 65 72 20 6f 6e 20 77 |e charac|ter on w|
|00004180| 68 69 63 68 0a 74 68 65 | 20 63 75 72 73 6f 72 20 |hich.the| cursor |
|00004190| 69 73 20 70 72 65 73 65 | 6e 74 6c 79 20 73 69 74 |is prese|ntly sit|
|000041a0| 74 69 6e 67 2c 20 65 76 | 65 6e 20 69 66 20 69 74 |ting, ev|en if it|
|000041b0| 20 69 73 20 61 6e 20 20 | 78 2c 20 20 61 6e 64 20 | is an |x, and |
|000041c0| 6d 6f 76 65 20 74 6f 20 | 74 68 65 0a 6e 65 78 74 |move to |the.next|
|000041d0| 20 6f 63 63 75 72 72 65 | 6e 63 65 2c 20 73 6f 20 | occurre|nce, so |
|000041e0| 49 20 77 6f 75 6c 64 20 | 74 68 69 6e 6b 20 74 68 |I would |think th|
|000041f0| 61 74 20 20 74 78 20 20 | 73 68 6f 75 6c 64 20 69 |at tx |should i|
|00004200| 67 6e 6f 72 65 20 74 68 | 65 20 63 68 61 72 61 63 |gnore th|e charac|
|00004210| 74 65 72 0a 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |ter.imme|diately |
|00004220| 61 66 74 65 72 20 74 68 | 65 20 63 75 72 73 6f 72 |after th|e cursor|
|00004230| 2c 20 61 6e 64 20 20 54 | 78 20 20 74 68 65 20 63 |, and T|x the c|
|00004240| 68 61 72 61 63 74 65 72 | 20 69 6d 6d 65 64 69 61 |haracter| immedia|
|00004250| 74 65 6c 79 20 62 65 66 | 6f 72 65 0a 74 68 65 20 |tely bef|ore.the |
|00004260| 63 75 72 73 6f 72 2e 20 | 20 54 68 65 20 70 6f 69 |cursor. | The poi|
|00004270| 6e 74 20 69 73 20 74 68 | 61 74 20 77 68 65 6e 20 |nt is th|at when |
|00004280| 6f 6e 65 20 64 6f 65 73 | 20 20 4e 66 78 2c 20 20 |one does| Nfx, |
|00004290| 61 6e 64 20 66 69 6e 64 | 73 20 74 68 61 74 20 6f |and find|s that o|
|000042a0| 6e 65 0a 68 61 64 20 66 | 61 69 6c 65 64 20 74 6f |ne.had f|ailed to|
|000042b0| 20 63 6f 75 6e 74 20 6f | 6e 65 20 6f 63 63 75 72 | count o|ne occur|
|000042c0| 72 65 6e 63 65 20 6f 66 | 20 20 78 20 20 61 6e 64 |rence of| x and|
|000042d0| 20 66 61 6c 6c 65 6e 20 | 73 68 6f 72 74 20 6f 66 | fallen |short of|
|000042e0| 20 77 68 65 72 65 20 6f | 6e 65 0a 77 61 6e 74 65 | where o|ne.wante|
|000042f0| 64 20 74 6f 20 67 6f 2c | 20 6f 6e 65 20 63 61 6e |d to go,| one can|
|00004300| 20 68 69 74 20 20 3b 20 | 20 61 6e 64 20 67 65 74 | hit ; | and get|
|00004310| 20 74 68 65 72 65 2e 20 | 20 4c 69 6b 65 77 69 73 | there. | Likewis|
|00004320| 65 2c 20 6f 6e 20 64 6f | 69 6e 67 20 20 4e 74 78 |e, on do|ing Ntx|
|00004330| 0a 61 6e 64 20 66 69 6e | 64 69 6e 67 20 6f 6e 65 |.and fin|ding one|
|00004340| 20 68 61 73 20 66 61 6c | 6c 65 6e 20 73 68 6f 72 | has fal|len shor|
|00004350| 74 2c 20 6f 6e 65 20 73 | 68 6f 75 6c 64 20 62 65 |t, one s|hould be|
|00004360| 20 61 62 6c 65 20 74 6f | 20 68 69 74 20 20 3b 20 | able to| hit ; |
|00004370| 20 61 6e 64 20 67 65 74 | 0a 74 6f 20 74 68 65 20 | and get|.to the |
|00004380| 74 68 65 20 6e 65 78 74 | 20 6f 63 63 75 72 72 65 |the next| occurre|
|00004390| 6e 63 65 3b 20 62 75 74 | 20 61 74 20 70 72 65 73 |nce; but| at pres|
|000043a0| 65 6e 74 2c 20 68 69 74 | 74 69 6e 67 20 20 3b 20 |ent, hit|ting ; |
|000043b0| 20 6c 65 61 76 65 73 0a | 74 68 65 20 63 75 72 73 | leaves.|the curs|
|000043c0| 6f 72 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 70 |or in th|e same p|
|000043d0| 6f 73 69 74 69 6f 6e 3b | 20 6f 6e 65 20 6d 75 73 |osition;| one mus|
|000043e0| 74 20 68 69 74 20 20 60 | 60 32 3b 27 27 20 20 74 |t hit `|`2;'' t|
|000043f0| 6f 20 67 65 74 20 61 6e | 79 0a 66 75 72 74 68 65 |o get an|y.furthe|
|00004400| 72 2e 20 20 49 6e 20 65 | 66 66 65 63 74 2c 20 20 |r. In e|ffect, |
|00004410| 4e 74 78 20 20 69 73 20 | 70 72 65 73 65 6e 74 6c |Ntx is |presentl|
|00004420| 79 20 64 65 66 69 6e 65 | 64 20 61 73 20 20 4e 66 |y define|d as Nf|
|00004430| 78 68 3b 20 20 49 20 61 | 6d 0a 73 75 67 67 65 73 |xh; I a|m.sugges|
|00004440| 74 69 6e 67 20 74 68 61 | 74 20 69 74 20 62 65 20 |ting tha|t it be |
|00004450| 64 65 66 69 6e 65 64 20 | 61 73 20 20 6c 4e 66 78 |defined |as lNfx|
|00004460| 68 2e 0a 0a 20 20 20 20 | 20 54 68 65 20 73 65 71 |h... | The seq|
|00004470| 75 65 6e 63 65 73 20 20 | 63 77 2c 20 64 77 20 20 |uences |cw, dw |
|00004480| 61 6e 64 20 20 79 77 20 | 20 61 72 65 20 70 72 65 |and yw | are pre|
|00004490| 73 65 6e 74 6c 79 20 76 | 69 6f 6c 61 74 69 6f 6e |sently v|iolation|
|000044a0| 73 20 6f 66 20 74 68 65 | 0a 70 72 69 6e 63 69 70 |s of the|.princip|
|000044b0| 6c 65 20 74 68 61 74 20 | 20 63 5b 6d 6f 76 65 6d |le that | c[movem|
|000044c0| 65 6e 74 5d 2c 20 20 64 | 5b 6d 6f 76 65 6d 65 6e |ent], d|[movemen|
|000044d0| 74 5d 20 20 61 6e 64 20 | 20 79 5b 6d 6f 76 65 6d |t] and | y[movem|
|000044e0| 65 6e 74 5d 20 20 63 68 | 61 6e 67 65 2c 0a 64 65 |ent] ch|ange,.de|
|000044f0| 6c 65 74 65 2c 20 6f 72 | 20 79 61 6e 6b 20 65 76 |lete, or| yank ev|
|00004500| 65 72 79 74 68 69 6e 67 | 20 66 72 6f 6d 20 74 68 |erything| from th|
|00004510| 65 20 63 75 72 72 65 6e | 74 20 63 75 72 73 6f 72 |e curren|t cursor|
|00004520| 20 70 6f 73 69 74 69 6f | 6e 20 74 68 72 6f 75 67 | positio|n throug|
|00004530| 68 0a 74 68 65 20 65 6e | 64 70 6f 69 6e 74 20 6f |h.the en|dpoint o|
|00004540| 66 20 74 68 65 20 6d 6f | 76 65 6d 65 6e 74 20 63 |f the mo|vement c|
|00004550| 6f 6d 6d 61 6e 64 2e 20 | 20 63 77 20 64 6f 65 73 |ommand. | cw does|
|00004560| 20 77 68 61 74 20 6f 6e | 65 20 77 6f 75 6c 64 20 | what on|e would |
|00004570| 65 78 70 65 63 74 20 6f | 66 0a 63 65 20 28 69 6e |expect o|f.ce (in|
|00004580| 20 66 61 63 74 2c 20 74 | 68 65 79 20 73 65 65 6d | fact, t|hey seem|
|00004590| 20 74 6f 20 62 65 20 73 | 79 6e 6f 6e 79 6d 73 29 | to be s|ynonyms)|
|000045a0| 2c 20 77 68 69 6c 65 20 | 74 68 65 72 65 20 69 73 |, while |there is|
|000045b0| 20 6e 6f 20 77 61 79 20 | 74 6f 20 67 65 74 0a 74 | no way |to get.t|
|000045c0| 68 65 20 65 66 66 65 63 | 74 20 77 68 69 63 68 20 |he effec|t which |
|000045d0| 20 63 77 20 20 77 6f 75 | 6c 64 20 68 61 76 65 20 | cw wou|ld have |
|000045e0| 69 66 20 69 74 20 77 65 | 72 65 20 74 72 65 61 74 |if it we|re treat|
|000045f0| 65 64 20 60 60 63 6f 6e | 73 69 73 74 65 6e 74 6c |ed ``con|sistentl|
|00004600| 79 27 27 2e 0a 28 45 2e | 67 2e 2c 20 69 66 20 49 |y''..(E.|g., if I|
|00004610| 20 68 61 76 65 20 61 20 | 6c 69 6e 65 20 62 65 67 | have a |line beg|
|00004620| 69 6e 6e 69 6e 67 20 20 | 60 60 41 6e 64 20 69 66 |inning |``And if|
|00004630| 27 27 2c 20 61 6e 64 20 | 49 20 77 61 6e 74 20 74 |'', and |I want t|
|00004640| 6f 20 63 68 61 6e 67 65 | 20 69 74 0a 74 6f 20 60 |o change| it.to `|
|00004650| 60 49 66 27 27 2c 20 49 | 20 63 61 6e 6e 6f 74 20 |`If'', I| cannot |
|00004660| 6a 75 73 74 20 70 75 74 | 20 74 68 65 20 63 75 72 |just put| the cur|
|00004670| 73 6f 72 20 6f 6e 20 74 | 68 65 20 41 20 61 6e 64 |sor on t|he A and|
|00004680| 20 68 69 74 20 20 63 77 | 49 5e 5d 2e 29 20 20 64 | hit cw|I^].) d|
|00004690| 77 0a 61 6e 64 20 20 79 | 77 20 20 64 65 6c 65 74 |w.and y|w delet|
|000046a0| 65 20 75 70 20 74 6f 20 | 74 68 65 20 63 68 61 72 |e up to |the char|
|000046b0| 61 63 74 65 72 20 69 6d | 6d 65 64 69 61 74 65 6c |acter im|mediatel|
|000046c0| 79 20 62 65 66 6f 72 65 | 20 74 68 65 20 70 6f 69 |y before| the poi|
|000046d0| 6e 74 20 74 6f 0a 77 68 | 69 63 68 20 60 60 77 27 |nt to.wh|ich ``w'|
|000046e0| 27 20 77 6f 75 6c 64 20 | 74 61 6b 65 20 74 68 65 |' would |take the|
|000046f0| 20 63 75 72 73 6f 72 2e | 20 20 49 20 77 6f 75 6c | cursor.| I woul|
|00004700| 64 20 68 61 76 65 20 74 | 6f 20 61 67 72 65 65 20 |d have t|o agree |
|00004710| 74 68 61 74 20 74 68 69 | 73 0a 62 65 68 61 76 69 |that thi|s.behavi|
|00004720| 6f 72 20 6f 66 20 64 77 | 20 61 6e 64 20 20 79 77 |or of dw| and yw|
|00004730| 20 20 69 73 20 6d 6f 72 | 65 20 75 73 65 66 75 6c | is mor|e useful|
|00004740| 20 74 68 61 6e 20 74 68 | 61 74 20 77 68 69 63 68 | than th|at which|
|00004750| 20 61 20 6c 69 74 65 72 | 61 6c 0a 69 6e 74 65 72 | a liter|al.inter|
|00004760| 70 72 65 74 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |pretatio|n of the|
|00004770| 20 6d 6f 76 65 6d 65 6e | 74 20 72 75 6c 65 20 77 | movemen|t rule w|
|00004780| 6f 75 6c 64 20 6c 65 61 | 64 20 74 6f 3b 20 62 75 |ould lea|d to; bu|
|00004790| 74 20 70 65 72 68 61 70 | 73 20 69 74 0a 77 6f 75 |t perhap|s it.wou|
|000047a0| 6c 64 20 62 65 63 6f 6d | 65 20 73 74 69 6c 6c 20 |ld becom|e still |
|000047b0| 6d 6f 72 65 20 75 73 65 | 66 75 6c 20 69 66 20 77 |more use|ful if w|
|000047c0| 68 65 6e 20 61 70 70 6c | 69 65 64 20 74 6f 20 74 |hen appl|ied to t|
|000047d0| 68 65 20 6c 61 73 74 20 | 77 6f 72 64 20 6f 6e 0a |he last |word on.|
|000047e0| 61 20 6c 69 6e 65 2c 20 | 69 74 20 64 65 6c 65 74 |a line, |it delet|
|000047f0| 65 64 20 6f 72 20 79 61 | 6e 6b 65 64 20 74 68 65 |ed or ya|nked the|
|00004800| 20 73 70 61 63 65 20 69 | 6d 6d 65 64 69 61 74 65 | space i|mmediate|
|00004810| 6c 79 20 62 65 66 6f 72 | 65 20 74 68 65 20 77 6f |ly befor|e the wo|
|00004820| 72 64 0a 61 6c 6f 6e 67 | 20 77 69 74 68 20 74 68 |rd.along| with th|
|00004830| 65 20 77 6f 72 64 2e 2e | 2e 20 2e 20 20 4f 6e 20 |e word..|. . On |
|00004840| 74 68 65 20 6f 74 68 65 | 72 20 68 61 6e 64 2c 20 |the othe|r hand, |
|00004850| 6f 6e 65 20 63 6f 75 6c | 64 20 61 72 67 75 65 20 |one coul|d argue |
|00004860| 66 6f 72 0a 6d 61 6b 69 | 6e 67 20 61 20 64 69 73 |for.maki|ng a dis|
|00004870| 74 69 6e 63 74 69 6f 6e | 20 62 65 74 77 65 65 6e |tinction| between|
|00004880| 20 20 63 77 20 20 61 6e | 64 20 20 63 65 2e 0a 0a | cw an|d ce...|
|00004890| 20 20 20 20 20 54 68 6f | 75 67 68 20 49 20 73 65 | Tho|ugh I se|
|000048a0| 65 20 74 68 65 20 6d 6f | 74 69 76 61 74 69 6f 6e |e the mo|tivation|
|000048b0| 20 66 6f 72 20 74 68 65 | 20 61 62 6f 76 65 20 64 | for the| above d|
|000048c0| 65 66 69 6e 69 74 69 6f | 6e 73 2c 0a 49 20 73 65 |efinitio|ns,.I se|
|000048d0| 65 20 6e 6f 20 73 65 6e | 73 69 62 6c 65 20 72 65 |e no sen|sible re|
|000048e0| 61 73 6f 6e 20 77 68 79 | 20 20 59 20 20 73 68 6f |ason why| Y sho|
|000048f0| 75 6c 64 20 62 65 20 65 | 71 75 69 76 61 6c 65 6e |uld be e|quivalen|
|00004900| 74 20 74 6f 20 20 79 79 | 2c 20 20 77 68 65 6e 0a |t to yy|, when.|
|00004910| 43 20 20 61 6e 64 20 20 | 44 20 20 61 72 65 20 65 |C and |D are e|
|00004920| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 20 63 24 |quivalen|t to c$|
|00004930| 20 20 61 6e 64 20 20 64 | 24 2e 20 20 49 20 77 6f | and d|$. I wo|
|00004940| 75 6c 64 20 76 6f 74 65 | 20 66 6f 72 20 63 68 61 |uld vote| for cha|
|00004950| 6e 67 69 6e 67 0a 59 20 | 20 74 6f 20 6d 65 61 6e |nging.Y | to mean|
|00004960| 20 20 79 24 2e 0a 0a 52 | 41 44 49 43 41 4c 20 53 | y$...R|ADICAL S|
|00004970| 55 47 47 45 53 54 49 4f | 4e 53 0a 0a 20 20 20 20 |UGGESTIO|NS.. |
|00004980| 20 49 73 20 74 68 65 72 | 65 20 61 6e 79 20 72 65 | Is ther|e any re|
|00004990| 61 73 6f 6e 20 66 6f 72 | 20 6d 61 69 6e 74 61 69 |ason for| maintai|
|000049a0| 6e 69 6e 67 20 74 68 65 | 20 64 69 73 74 69 6e 63 |ning the| distinc|
|000049b0| 74 69 6f 6e 20 62 65 74 | 77 65 65 6e 0a 74 68 65 |tion bet|ween.the|
|000049c0| 20 60 60 3a 27 27 20 73 | 74 61 74 65 20 6f 66 20 | ``:'' s|tate of |
|000049d0| 76 69 2c 20 61 6e 64 20 | 20 65 78 20 20 69 74 73 |vi, and | ex its|
|000049e0| 65 6c 66 3f 20 20 41 74 | 20 70 72 65 73 65 6e 74 |elf? At| present|
|000049f0| 2c 20 74 68 65 72 65 20 | 61 72 65 0a 72 65 6c 61 |, there |are.rela|
|00004a00| 74 69 76 65 20 61 64 76 | 61 6e 74 61 67 65 73 20 |tive adv|antages |
|00004a10| 74 68 61 74 20 6c 65 61 | 64 20 6f 6e 65 20 74 6f |that lea|d one to|
|00004a20| 20 63 68 6f 6f 73 65 20 | 74 6f 20 67 6f 20 69 6e | choose |to go in|
|00004a30| 74 6f 20 6f 6e 65 20 6f | 72 20 74 68 65 0a 6f 74 |to one o|r the.ot|
|00004a40| 68 65 72 20 66 6f 72 20 | 61 20 67 69 76 65 6e 20 |her for |a given |
|00004a50| 6f 70 65 72 61 74 69 6f | 6e 3a 20 20 46 72 6f 6d |operatio|n: From|
|00004a60| 20 74 68 65 20 76 69 2d | 3a 20 73 74 61 74 65 2c | the vi-|: state,|
|00004a70| 20 69 74 20 69 73 20 65 | 61 73 69 65 72 0a 74 6f | it is e|asier.to|
|00004a80| 20 72 65 74 75 72 6e 20 | 74 6f 20 74 68 65 20 72 | return |to the r|
|00004a90| 65 67 75 6c 61 72 20 76 | 69 20 73 74 61 74 65 3b |egular v|i state;|
|00004aa0| 20 66 72 6f 6d 20 65 78 | 2c 20 6f 6e 65 20 68 61 | from ex|, one ha|
|00004ab0| 73 20 61 20 6d 6f 72 65 | 20 70 6f 77 65 72 66 75 |s a more| powerfu|
|00004ac0| 6c 0a 72 61 6e 67 65 20 | 6f 66 20 63 6f 6d 6d 61 |l.range |of comma|
|00004ad0| 6e 64 73 3b 20 61 6e 64 | 20 69 74 20 69 73 20 65 |nds; and| it is e|
|00004ae0| 61 73 69 65 72 20 74 6f | 20 67 69 76 65 20 61 20 |asier to| give a |
|00004af0| 73 65 72 69 65 73 20 6f | 66 20 63 6f 6d 6d 61 6e |series o|f comman|
|00004b00| 64 73 0a 62 65 63 61 75 | 73 65 20 65 61 63 68 20 |ds.becau|se each |
|00004b10| 63 61 72 72 69 61 67 65 | 2d 72 65 74 75 72 6e 20 |carriage|-return |
|00004b20| 67 69 76 65 73 20 6f 6e | 65 20 61 20 6e 65 77 20 |gives on|e a new |
|00004b30| 70 72 6f 6d 70 74 2e 20 | 20 4d 79 20 73 75 67 67 |prompt. | My sugg|
|00004b40| 65 73 74 69 6f 6e 0a 69 | 73 20 74 68 61 74 20 66 |estion.i|s that f|
|00004b50| 72 6f 6d 20 76 69 2c 20 | 60 60 3a 27 27 20 73 68 |rom vi, |``:'' sh|
|00004b60| 6f 75 6c 64 20 63 61 72 | 72 79 20 79 6f 75 20 64 |ould car|ry you d|
|00004b70| 69 72 65 63 74 6c 79 20 | 74 6f 20 65 78 2c 20 61 |irectly |to ex, a|
|00004b80| 6e 64 20 77 68 65 6e 20 | 79 6f 75 0a 61 72 65 20 |nd when |you.are |
|00004b90| 69 6e 20 65 78 2c 20 63 | 61 72 72 69 61 67 65 2d |in ex, c|arriage-|
|00004ba0| 72 65 74 75 72 6e 20 28 | 5e 4d 29 20 61 66 74 65 |return (|^M) afte|
|00004bb0| 72 20 61 20 63 6f 6d 6d | 61 6e 64 20 73 68 6f 75 |r a comm|and shou|
|00004bc0| 6c 64 20 67 69 76 65 20 | 79 6f 75 20 61 20 6e 65 |ld give |you a ne|
|00004bd0| 77 0a 70 72 6f 6d 70 74 | 2c 20 77 68 69 6c 65 20 |w.prompt|, while |
|00004be0| 5e 5d 20 73 68 6f 75 6c | 64 20 70 75 74 20 79 6f |^] shoul|d put yo|
|00004bf0| 75 20 69 6e 74 6f 20 76 | 69 2e 20 20 43 6f 6e 63 |u into v|i. Conc|
|00004c00| 65 69 76 61 62 6c 79 2c | 20 74 68 69 6e 67 73 20 |eivably,| things |
|00004c10| 6d 69 67 68 74 20 62 65 | 0a 73 69 6d 70 6c 69 66 |might be|.simplif|
|00004c20| 69 65 64 20 65 76 65 6e | 20 66 75 72 74 68 65 72 |ied even| further|
|00004c30| 2c 20 61 6e 64 20 63 61 | 72 72 69 61 67 65 20 72 |, and ca|rriage r|
|00004c40| 65 74 75 72 6e 20 72 61 | 74 68 65 72 20 74 68 61 |eturn ra|ther tha|
|00004c50| 6e 20 3a 20 63 6f 75 6c | 64 0a 62 65 20 74 68 65 |n : coul|d.be the|
|00004c60| 20 6b 65 79 20 74 68 61 | 74 20 77 6f 75 6c 64 20 | key tha|t would |
|00004c70| 63 61 72 72 79 20 6f 6e | 65 20 66 72 6f 6d 20 74 |carry on|e from t|
|00004c80| 68 65 20 72 65 67 75 6c | 61 72 20 6d 6f 64 65 20 |he regul|ar mode |
|00004c90| 6f 66 20 76 69 20 69 6e | 74 6f 20 65 78 3a 0a 0a |of vi in|to ex:..|
|00004ca0| 09 09 09 20 2e 2d 2d 2d | 2d 2d 2d 2d 2e 09 2e 2d |... .---|----...-|
|00004cb0| 2d 2d 2d 2d 2d 2d 2e 0a | 09 2e 2d 2d 2d 2d 2d 2d |------..|..------|
|00004cc0| 2d 2e 20 61 2c 69 2e 2e | 2e 20 7c 20 62 61 73 69 |-. a,i..|. | basi|
|00004cd0| 63 20 7c 20 20 5e 4d 09 | 7c 09 7c 0a 09 7c 20 20 |c | ^M.||.|..| |
|00004ce0| 76 69 20 20 20 7c 3c 2d | 2d 2d 2d 2d 2d 20 7c 09 |vi |<-|----- |.|
|00004cf0| 20 7c 2d 2d 2d 2d 2d 3e | 7c 20 20 65 78 09 7c 3c | |----->|| ex.|<|
|00004d00| 2d 2d 2d 2e 0a 09 7c 20 | 69 6e 73 65 72 74 7c 09 |---...| |insert|.|
|00004d10| 20 7c 20 20 20 76 69 20 | 20 7c 09 7c 09 7c 20 20 | | vi | |.|.| |
|00004d20| 20 20 7c 5e 4d 0a 09 7c | 20 20 6d 6f 64 65 20 7c | |^M..|| mode ||
|00004d30| 20 2d 2d 2d 2d 2d 2d 3e | 7c 09 20 7c 3c 2d 2d 2d | ------>||. |<---|
|00004d40| 2d 2d 7c 20 6d 6f 64 65 | 20 09 7c 20 2d 2d 2d 27 |--| mode| .| ---'|
|00004d50| 0a 09 60 2d 2d 2d 2d 2d | 2d 2d 27 20 20 5e 5d 09 |..`-----|--' ^].|
|00004d60| 20 7c 20 20 6d 6f 64 65 | 20 7c 20 20 20 5e 5d 09 | | mode| | ^].|
|00004d70| 7c 09 7c 0a 09 09 09 20 | 60 2d 2d 2d 2d 2d 2d 2d ||.|.... |`-------|
|00004d80| 27 09 60 2d 2d 2d 2d 2d | 2d 2d 27 0a 0a 28 4f 66 |'.`-----|--'..(Of|
|00004d90| 20 63 6f 75 72 73 65 2c | 20 5e 4d 20 70 72 65 73 | course,| ^M pres|
|00004da0| 65 6e 74 6c 79 20 68 61 | 73 20 61 20 6d 65 61 6e |ently ha|s a mean|
|00004db0| 69 6e 67 20 69 6e 20 76 | 69 2c 20 62 75 74 0a 69 |ing in v|i, but.i|
|00004dc0| 74 20 68 61 73 20 61 20 | 73 79 6e 6f 6e 79 6d 20 |t has a |synonym |
|00004dd0| 2b 2e 29 20 20 43 6c 65 | 61 72 6c 79 2c 20 74 68 |+.) Cle|arly, th|
|00004de0| 65 72 65 20 77 6f 75 6c | 64 20 61 6c 73 6f 20 62 |ere woul|d also b|
|00004df0| 65 20 6e 6f 20 6e 65 65 | 64 20 66 6f 72 20 61 0a |e no nee|d for a.|
|00004e00| 73 70 65 63 69 61 6c 20 | 22 48 69 74 20 72 65 74 |special |"Hit ret|
|00004e10| 75 72 6e 20 74 6f 20 63 | 6f 6e 74 69 6e 75 65 22 |urn to c|ontinue"|
|00004e20| 20 73 74 61 74 65 2e 0a | 20 20 20 20 20 49 20 68 | state..| I h|
|00004e30| 61 76 65 20 6e 6f 74 20 | 64 69 73 74 69 6e 67 75 |ave not |distingu|
|00004e40| 69 73 68 65 64 20 76 69 | 20 61 6e 64 20 6f 70 65 |ished vi| and ope|
|00004e50| 6e 20 69 6e 20 74 68 65 | 20 61 62 6f 76 65 20 64 |n in the| above d|
|00004e60| 69 61 67 72 61 6d 2e 0a | 4d 79 20 69 64 65 61 20 |iagram..|My idea |
|00004e70| 68 65 72 65 20 69 73 20 | 74 68 61 74 20 5e 5d 20 |here is |that ^] |
|00004e80| 77 6f 75 6c 64 20 61 63 | 74 75 61 6c 6c 79 20 72 |would ac|tually r|
|00004e90| 65 74 75 72 6e 20 79 6f | 75 20 74 6f 20 65 69 74 |eturn yo|u to eit|
|00004ea0| 68 65 72 20 76 69 0a 6f | 72 20 6f 70 65 6e 2c 20 |her vi.o|r open, |
|00004eb0| 77 68 69 63 68 65 76 65 | 72 20 79 6f 75 20 68 61 |whicheve|r you ha|
|00004ec0| 64 20 6c 61 73 74 20 62 | 65 65 6e 20 69 6e 2c 20 |d last b|een in, |
|00004ed0| 61 6e 64 20 74 68 61 74 | 20 74 6f 20 73 77 69 74 |and that| to swit|
|00004ee0| 63 68 0a 74 6f 20 74 68 | 65 20 6f 74 68 65 72 2c |ch.to th|e other,|
|00004ef0| 20 79 6f 75 20 63 6f 75 | 6c 64 20 65 6e 74 65 72 | you cou|ld enter|
|00004f00| 20 65 78 20 61 6e 64 20 | 74 79 70 65 20 76 69 5e | ex and |type vi^|
|00004f10| 5d 20 6f 72 20 6f 5e 5d | 20 72 65 73 70 65 63 74 |] or o^]| respect|
|00004f20| 69 76 65 6c 79 2e 0a 28 | 4f 72 20 79 6f 75 20 63 |ively..(|Or you c|
|00004f30| 6f 75 6c 64 20 74 79 70 | 65 20 20 76 69 5e 4d 2c |ould typ|e vi^M,|
|00004f40| 20 72 65 73 70 65 63 74 | 69 76 65 6c 79 20 6f 5e | respect|ively o^|
|00004f50| 4d 2c 20 61 6e 64 20 66 | 75 72 74 68 65 72 20 65 |M, and f|urther e|
|00004f60| 78 20 63 6f 6d 6d 61 6e | 64 73 2c 0a 61 6e 64 20 |x comman|ds,.and |
|00004f70| 74 68 65 20 6d 6f 64 65 | 20 77 6f 75 6c 64 20 62 |the mode| would b|
|00004f80| 65 20 73 61 76 65 64 20 | 66 6f 72 20 74 68 65 20 |e saved |for the |
|00004f90| 6e 65 78 74 20 74 69 6d | 65 20 79 6f 75 20 68 69 |next tim|e you hi|
|00004fa0| 74 20 61 20 5e 5d 2e 29 | 20 20 4f 72 0a 61 6c 74 |t a ^].)| Or.alt|
|00004fb0| 65 72 6e 61 74 69 76 65 | 6c 79 2c 20 74 68 65 73 |ernative|ly, thes|
|00004fc0| 65 20 63 6f 75 6c 64 20 | 62 65 20 6d 61 64 65 20 |e could |be made |
|00004fd0| 73 65 74 74 61 62 6c 65 | 20 6f 70 74 69 6f 6e 73 |settable| options|
|00004fe0| 3a 20 73 65 20 76 69 73 | 75 61 6c 0a 72 65 73 70 |: se vis|ual.resp|
|00004ff0| 65 63 74 69 76 65 6c 79 | 20 73 65 20 6e 6f 76 69 |ectively| se novi|
|00005000| 73 75 61 6c 2e 0a 20 20 | 20 20 20 48 61 76 69 6e |sual.. | Havin|
|00005010| 67 20 67 6f 74 74 65 6e | 20 75 73 65 64 20 74 6f |g gotten| used to|
|00005020| 20 74 68 65 20 65 64 69 | 74 6f 72 20 61 73 20 69 | the edi|tor as i|
|00005030| 74 20 6e 6f 77 20 65 78 | 69 73 74 73 2c 20 49 20 |t now ex|ists, I |
|00005040| 61 64 6d 69 74 20 74 68 | 61 74 0a 49 20 66 65 65 |admit th|at.I fee|
|00005050| 6c 20 75 6e 65 61 73 79 | 20 61 62 6f 75 74 20 74 |l uneasy| about t|
|00005060| 68 65 20 61 62 6f 76 65 | 20 69 64 65 61 20 2d 2d |he above| idea --|
|00005070| 20 74 68 65 20 73 65 6e | 73 65 20 6f 66 20 6b 6e | the sen|se of kn|
|00005080| 6f 77 69 6e 67 20 74 68 | 61 74 0a 49 20 61 6d 20 |owing th|at.I am |
|00005090| 60 60 73 74 69 6c 6c 20 | 69 6e 20 76 69 27 27 20 |``still |in vi'' |
|000050a0| 77 68 65 6e 20 49 20 68 | 69 74 20 3a 2c 20 61 6e |when I h|it :, an|
|000050b0| 64 20 6e 6f 74 20 74 68 | 61 74 20 60 60 6f 74 68 |d not th|at ``oth|
|000050c0| 65 72 20 6c 61 6e 64 27 | 27 20 6f 66 20 65 78 2c |er land'|' of ex,|
|000050d0| 20 0a 72 65 70 72 65 73 | 65 6e 74 73 20 61 20 6b | .repres|ents a k|
|000050e0| 69 6e 64 20 6f 66 20 6f | 66 20 6f 72 69 65 6e 74 |ind of o|f orient|
|000050f0| 61 74 69 6f 6e 20 74 68 | 61 74 20 69 74 20 69 73 |ation th|at it is|
|00005100| 20 64 69 73 63 6f 6e 63 | 65 72 74 69 6e 67 0a 74 | disconc|erting.t|
|00005110| 6f 20 61 62 61 6e 64 6f | 6e 2e 20 20 42 75 74 20 |o abando|n. But |
|00005120| 49 20 63 61 6e 27 74 20 | 73 65 65 20 61 6e 79 20 |I can't |see any |
|00005130| 6c 6f 67 69 63 61 6c 20 | 64 69 73 61 64 76 61 6e |logical |disadvan|
|00005140| 74 61 67 65 20 69 6e 20 | 6d 61 6b 69 6e 67 0a 73 |tage in |making.s|
|00005150| 75 63 68 20 61 20 63 68 | 61 6e 67 65 2e 20 20 43 |uch a ch|ange. C|
|00005160| 61 6e 20 79 6f 75 3f 20 | 20 43 65 72 74 61 69 6e |an you? | Certain|
|00005170| 6c 79 2c 20 74 68 65 72 | 65 20 77 6f 75 6c 64 20 |ly, ther|e would |
|00005180| 62 65 20 74 68 69 6e 67 | 73 20 74 68 61 74 0a 77 |be thing|s that.w|
|00005190| 6f 75 6c 64 20 68 61 76 | 65 20 74 6f 20 62 65 20 |ould hav|e to be |
|000051a0| 74 68 6f 75 67 68 74 20 | 6f 75 74 2c 20 73 75 63 |thought |out, suc|
|000051b0| 68 20 61 73 20 77 68 61 | 74 20 68 61 70 70 65 6e |h as wha|t happen|
|000051c0| 73 20 74 6f 20 62 6f 74 | 74 6f 6d 2d 6c 69 6e 65 |s to bot|tom-line|
|000051d0| 0a 76 69 20 70 61 74 74 | 65 72 6e 2d 73 65 61 72 |.vi patt|ern-sear|
|000051e0| 63 68 65 73 2e 20 20 4d | 79 20 74 68 6f 75 67 68 |ches. M|y though|
|000051f0| 74 20 77 6f 75 6c 64 20 | 62 65 20 74 68 61 74 20 |t would |be that |
|00005200| 60 60 2f 27 27 20 66 72 | 6f 6d 20 76 69 20 73 68 |``/'' fr|om vi sh|
|00005210| 6f 75 6c 64 0a 67 69 76 | 65 20 3a 2f 20 28 69 2e |ould.giv|e :/ (i.|
|00005220| 65 2e 2c 20 70 75 74 20 | 6f 6e 65 20 69 6e 20 65 |e., put |one in e|
|00005230| 78 20 61 74 20 74 68 65 | 20 73 74 61 72 74 20 6f |x at the| start o|
|00005240| 66 20 61 20 70 61 74 74 | 65 72 6e 2d 73 65 61 72 |f a patt|ern-sear|
|00005250| 63 68 29 2c 0a 61 6e 64 | 20 5e 5d 20 61 66 74 65 |ch),.and| ^] afte|
|00005260| 72 20 61 20 70 61 74 74 | 65 72 6e 2d 73 65 61 72 |r a patt|ern-sear|
|00005270| 63 68 20 73 68 6f 75 6c | 64 20 70 75 74 20 6f 6e |ch shoul|d put on|
|00005280| 65 20 69 6e 74 6f 20 76 | 69 20 61 74 20 74 68 65 |e into v|i at the|
|00005290| 20 61 70 70 72 6f 70 72 | 69 61 74 65 0a 63 68 61 | appropr|iate.cha|
|000052a0| 72 61 63 74 65 72 20 6f | 6e 20 74 68 65 20 6c 69 |racter o|n the li|
|000052b0| 6e 65 2c 20 69 6e 20 63 | 6f 6e 74 72 61 73 74 20 |ne, in c|ontrast |
|000052c0| 74 6f 20 5e 4d 20 61 66 | 74 65 72 20 61 20 70 61 |to ^M af|ter a pa|
|000052d0| 74 74 65 72 6e 20 73 65 | 61 72 63 68 2c 0a 77 68 |ttern se|arch,.wh|
|000052e0| 69 63 68 20 77 6f 75 6c | 64 20 6c 65 61 76 65 20 |ich woul|d leave |
|000052f0| 6f 6e 65 20 69 6e 20 65 | 78 20 61 74 20 74 68 65 |one in e|x at the|
|00005300| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 6c 69 6e | appropr|iate lin|
|00005310| 65 2e 20 20 49 6e 20 67 | 65 6e 65 72 61 6c 2c 0a |e. In g|eneral,.|
|00005320| 49 20 74 68 69 6e 6b 20 | 73 75 63 68 20 63 68 61 |I think |such cha|
|00005330| 6e 67 65 73 20 77 6f 75 | 6c 64 20 6c 65 61 64 20 |nges wou|ld lead |
|00005340| 74 6f 20 67 72 65 61 74 | 65 72 20 73 69 6d 70 6c |to great|er simpl|
|00005350| 69 63 69 74 79 20 61 6e | 64 20 6c 65 61 72 6e 61 |icity an|d learna|
|00005360| 62 69 6c 69 74 79 0a 6f | 66 20 74 68 65 20 65 64 |bility.o|f the ed|
|00005370| 69 74 6f 72 2e 0a 20 20 | 20 20 20 49 20 77 6f 75 |itor.. | I wou|
|00005380| 6c 64 20 61 6c 73 6f 20 | 68 6f 70 65 20 74 68 61 |ld also |hope tha|
|00005390| 74 20 65 78 63 75 72 73 | 69 6f 6e 73 20 62 65 74 |t excurs|ions bet|
|000053a0| 77 65 65 6e 20 76 69 20 | 61 6e 64 20 65 78 20 61 |ween vi |and ex a|
|000053b0| 6e 64 20 62 61 63 6b 0a | 63 6f 75 6c 64 20 62 65 |nd back.|could be|
|000053c0| 20 61 6c 6c 6f 77 65 64 | 20 69 6e 20 73 63 72 69 | allowed| in scri|
|000053d0| 70 74 66 69 6c 65 73 2e | 20 20 49 74 20 6d 69 67 |ptfiles.| It mig|
|000053e0| 68 74 20 61 6c 73 6f 20 | 62 65 20 64 65 73 69 72 |ht also |be desir|
|000053f0| 61 62 6c 65 20 66 6f 72 | 0a 65 78 20 74 6f 20 68 |able for|.ex to h|
|00005400| 61 76 65 2c 20 69 6e 20 | 61 64 64 69 74 69 6f 6e |ave, in |addition|
|00005410| 20 74 6f 20 61 20 63 6f | 6e 63 65 70 74 20 6f 66 | to a co|ncept of|
|00005420| 20 60 60 63 75 72 72 65 | 6e 74 20 6c 69 6e 65 27 | ``curre|nt line'|
|00005430| 27 2c 20 6f 6e 65 20 6f | 66 0a 60 60 63 75 72 72 |', one o|f.``curr|
|00005440| 65 6e 74 20 63 75 72 73 | 6f 72 20 70 6f 73 69 74 |ent curs|or posit|
|00005450| 69 6f 6e 27 27 2e 2e 2e | 20 2e 0a 0a 20 20 20 20 |ion''...| ... |
|00005460| 20 57 65 6c 6c 2c 20 6f | 6e 20 74 6f 20 61 6e 6f | Well, o|n to ano|
|00005470| 74 68 65 72 20 73 75 62 | 6a 65 63 74 2e 20 20 4f |ther sub|ject. O|
|00005480| 6e 65 20 6f 66 20 74 68 | 65 20 69 6e 63 6f 6e 76 |ne of th|e inconv|
|00005490| 65 6e 69 65 6e 63 65 73 | 20 49 0a 66 6f 75 6e 64 |eniences| I.found|
|000054a0| 20 76 65 72 79 20 76 65 | 78 69 6e 67 20 77 68 65 | very ve|xing whe|
|000054b0| 6e 20 66 69 72 73 74 20 | 6c 65 61 72 6e 69 6e 67 |n first |learning|
|000054c0| 20 74 6f 20 75 73 65 20 | 74 68 65 20 65 64 69 74 | to use |the edit|
|000054d0| 6f 72 20 77 61 73 20 74 | 68 61 74 0a 77 68 65 6e |or was t|hat.when|
|000054e0| 20 69 6e 20 65 69 74 68 | 65 72 20 76 69 20 69 6e | in eith|er vi in|
|000054f0| 73 65 72 74 20 6d 6f 64 | 65 2c 20 6f 72 20 65 78 |sert mod|e, or ex|
|00005500| 2f 76 69 2d 62 6f 74 74 | 6f 6d 2d 6c 69 6e 65 2c |/vi-bott|om-line,|
|00005510| 20 69 74 20 77 61 73 20 | 76 65 72 79 20 68 61 72 | it was |very har|
|00005520| 64 0a 74 6f 20 65 64 69 | 74 20 77 68 61 74 20 49 |d.to edi|t what I|
|00005530| 20 77 61 73 20 64 6f 69 | 6e 67 2e 20 20 57 69 74 | was doi|ng. Wit|
|00005540| 68 69 6e 20 69 6e 73 65 | 72 74 20 6d 6f 64 65 20 |hin inse|rt mode |
|00005550| 74 68 65 20 6f 6e 6c 79 | 20 60 60 65 64 69 74 69 |the only| ``editi|
|00005560| 6e 67 27 27 0a 49 20 63 | 6f 75 6c 64 20 64 6f 2c |ng''.I c|ould do,|
|00005570| 20 77 69 74 68 6f 75 74 | 20 65 73 63 61 70 69 6e | without| escapin|
|00005580| 67 2c 20 77 61 73 20 77 | 69 74 68 20 74 68 65 20 |g, was w|ith the |
|00005590| 74 68 72 65 65 20 6f 70 | 65 72 61 74 69 6f 6e 73 |three op|erations|
|000055a0| 20 5e 48 2c 0a 5e 57 20 | 61 6e 64 20 74 68 65 20 | ^H,.^W |and the |
|000055b0| 6b 69 6c 6c 20 63 68 61 | 72 61 63 74 65 72 2e 20 |kill cha|racter. |
|000055c0| 20 41 6e 64 20 6f 6e 20 | 61 20 73 6c 6f 77 20 6c | And on |a slow l|
|000055d0| 69 6e 65 20 77 69 74 68 | 20 61 20 64 75 6d 62 20 |ine with| a dumb |
|000055e0| 74 65 72 6d 69 6e 61 6c | 2c 0a 65 73 63 61 70 69 |terminal|,.escapi|
|000055f0| 6e 67 20 74 6f 20 6d 61 | 6b 65 20 63 68 61 6e 67 |ng to ma|ke chang|
|00005600| 65 73 20 63 6f 75 6c 64 | 20 62 65 20 76 65 72 79 |es could| be very|
|00005610| 20 74 69 6d 65 2d 63 6f | 6e 73 75 6d 69 6e 67 20 | time-co|nsuming |
|00005620| 62 65 63 61 75 73 65 20 | 6c 61 72 67 65 0a 70 61 |because |large.pa|
|00005630| 72 74 73 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |rts of t|he scree|
|00005640| 6e 20 77 6f 75 6c 64 20 | 69 6e 73 69 73 74 20 6f |n would |insist o|
|00005650| 6e 20 62 65 69 6e 67 20 | 72 65 64 72 61 77 6e 2e |n being |redrawn.|
|00005660| 20 20 50 65 72 68 61 70 | 73 20 73 6f 6d 65 0a 6f | Perhap|s some.o|
|00005670| 74 68 65 72 20 63 6f 6e | 74 72 6f 6c 2d 63 68 61 |ther con|trol-cha|
|00005680| 72 61 63 74 65 72 20 63 | 6f 75 6c 64 20 73 65 72 |racter c|ould ser|
|00005690| 76 65 20 61 73 0a 61 20 | 6d 6f 64 69 66 69 65 64 |ve as.a |modified|
|000056a0| 20 65 73 63 61 70 65 2c | 20 74 68 61 74 20 61 6c | escape,| that al|
|000056b0| 6c 6f 77 65 64 20 6f 6e | 65 20 74 6f 20 65 64 69 |lowed on|e to edi|
|000056c0| 74 20 77 68 61 74 20 6f | 6e 65 20 68 61 64 20 65 |t what o|ne had e|
|000056d0| 6e 74 65 72 65 64 0a 69 | 6e 20 74 68 65 20 63 75 |ntered.i|n the cu|
|000056e0| 72 72 65 6e 74 20 69 6e | 73 65 72 74 69 6f 6e 20 |rrent in|sertion |
|000056f0| 77 69 74 68 6f 75 74 20 | 68 61 76 69 6e 67 20 65 |without |having e|
|00005700| 76 65 72 79 74 68 69 6e | 67 20 62 65 6c 6f 77 20 |verythin|g below |
|00005710| 69 74 20 72 65 64 72 61 | 77 6e 2c 0a 61 6e 64 20 |it redra|wn,.and |
|00005720| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 74 6f 20 69 |then ret|urn to i|
|00005730| 74 2e 20 20 4f 62 76 69 | 6f 75 73 6c 79 2c 20 69 |t. Obvi|ously, i|
|00005740| 66 20 63 61 72 72 69 65 | 64 20 74 6f 20 69 74 73 |f carrie|d to its|
|00005750| 20 6c 6f 67 69 63 61 6c | 0a 6c 69 6d 69 74 20 74 | logical|.limit t|
|00005760| 68 69 73 20 69 64 65 61 | 20 63 6f 75 6c 64 20 6c |his idea| could l|
|00005770| 65 61 64 20 74 6f 20 72 | 69 64 69 63 75 6c 6f 75 |ead to r|idiculou|
|00005780| 73 20 6e 65 73 74 73 20 | 6f 66 0a 65 64 69 74 69 |s nests |of.editi|
|00005790| 6e 67 20 6f 70 65 72 61 | 74 69 6f 6e 73 3b 20 62 |ng opera|tions; b|
|000057a0| 75 74 20 74 68 65 72 65 | 20 77 6f 75 6c 64 20 62 |ut there| would b|
|000057b0| 65 20 6e 6f 20 6e 65 65 | 64 20 74 6f 20 63 61 72 |e no nee|d to car|
|000057c0| 72 79 20 69 74 20 74 6f | 20 69 74 73 0a 6c 6f 67 |ry it to| its.log|
|000057d0| 69 63 61 6c 20 6c 69 6d | 69 74 2e 0a 20 20 20 20 |ical lim|it.. |
|000057e0| 20 41 6e 79 77 61 79 2c | 20 74 68 65 20 70 72 6f | Anyway,| the pro|
|000057f0| 62 6c 65 6d 20 6f 66 20 | 65 64 69 74 69 6e 67 20 |blem of |editing |
|00005800| 65 78 2d 73 74 79 6c 65 | 20 63 6f 6d 6d 61 6e 64 |ex-style| command|
|00005810| 73 0a 77 61 73 20 65 76 | 65 6e 20 77 6f 72 73 65 |s.was ev|en worse|
|00005820| 2c 20 62 65 63 61 75 73 | 65 20 74 68 65 72 65 20 |, becaus|e there |
|00005830| 77 61 73 20 6e 6f 20 77 | 61 79 20 74 6f 20 60 60 |was no w|ay to ``|
|00005840| 65 73 63 61 70 65 20 61 | 6e 64 0a 72 65 76 69 73 |escape a|nd.revis|
|00005850| 65 27 27 2e 20 20 49 20 | 65 76 65 6e 74 75 61 6c |e''. I |eventual|
|00005860| 6c 79 20 6c 65 61 72 6e | 65 64 20 65 6e 6f 75 67 |ly learn|ed enoug|
|00005870| 68 20 74 6f 20 72 65 61 | 6c 69 7a 65 20 74 68 61 |h to rea|lize tha|
|00005880| 74 20 74 68 65 20 73 6f | 6c 75 74 69 6f 6e 0a 77 |t the so|lution.w|
|00005890| 61 73 20 74 6f 20 65 64 | 69 74 20 63 6f 6d 70 6c |as to ed|it compl|
|000058a0| 69 63 61 74 65 64 20 63 | 6f 6d 6d 61 6e 64 73 20 |icated c|ommands |
|000058b0| 69 6e 20 61 6e 6f 74 68 | 65 72 20 66 69 6c 65 20 |in anoth|er file |
|000058c0| 61 6e 64 20 73 6f 75 72 | 63 65 20 69 74 2e 0a 42 |and sour|ce it..B|
|000058d0| 75 74 20 69 74 20 69 73 | 20 73 6f 6d 65 74 69 6d |ut it is| sometim|
|000058e0| 65 73 20 76 65 72 79 20 | 75 73 65 66 75 6c 20 74 |es very |useful t|
|000058f0| 6f 20 68 61 76 65 20 74 | 68 65 20 74 65 78 74 20 |o have t|he text |
|00005900| 6f 6e 20 77 68 69 63 68 | 20 74 68 65 0a 63 6f 6d |on which| the.com|
|00005910| 6d 61 6e 64 73 20 61 72 | 65 20 74 6f 20 61 63 74 |mands ar|e to act|
|00005920| 20 69 6e 20 66 72 6f 6e | 74 20 6f 66 20 79 6f 75 | in fron|t of you|
|00005930| 20 77 68 65 6e 20 63 6f | 6d 70 6f 73 69 6e 67 20 | when co|mposing |
|00005940| 74 68 65 6d 20 28 65 2e | 67 2e 2c 20 79 6f 75 20 |them (e.|g., you |
|00005950| 63 61 6e 0a 79 61 6e 6b | 20 61 6e 64 20 6d 6f 64 |can.yank| and mod|
|00005960| 69 66 79 20 76 61 72 69 | 6f 75 73 20 70 69 65 63 |ify vari|ous piec|
|00005970| 65 73 29 2c 20 77 68 69 | 63 68 20 6c 65 64 20 74 |es), whi|ch led t|
|00005980| 6f 20 74 68 65 20 76 61 | 72 69 61 6e 74 20 6f 66 |o the va|riant of|
|00005990| 20 77 72 69 74 69 6e 67 | 0a 63 6f 6d 6d 61 6e 64 | writing|.command|
|000059a0| 20 6c 69 6e 65 73 20 77 | 69 74 68 69 6e 20 74 68 | lines w|ithin th|
|000059b0| 65 20 66 69 6c 65 20 49 | 20 77 61 73 20 65 64 69 |e file I| was edi|
|000059c0| 74 69 6e 67 2c 20 61 6e | 64 20 74 68 65 6e 20 77 |ting, an|d then w|
|000059d0| 72 69 74 69 6e 67 0a 74 | 68 6f 73 65 20 6c 69 6e |riting.t|hose lin|
|000059e0| 65 73 20 69 6e 74 6f 20 | 61 6e 6f 74 68 65 72 20 |es into |another |
|000059f0| 66 69 6c 65 20 61 6e 64 | 20 73 6f 75 72 63 69 6e |file and| sourcin|
|00005a00| 67 20 74 68 61 74 2c 20 | 77 69 74 68 6f 75 74 20 |g that, |without |
|00005a10| 65 76 65 72 20 6c 65 61 | 76 69 6e 67 0a 74 68 65 |ever lea|ving.the|
|00005a20| 20 63 75 72 72 65 6e 74 | 20 66 69 6c 65 2e 20 20 | current| file. |
|00005a30| 42 75 74 20 74 68 69 73 | 20 69 73 20 64 69 73 74 |But this| is dist|
|00005a40| 72 61 63 74 69 6e 67 20 | 74 6f 20 64 65 61 6c 20 |racting |to deal |
|00005a50| 77 69 74 68 0a 77 68 65 | 6e 20 63 6f 6e 63 65 6e |with.whe|n concen|
|00005a60| 74 72 61 74 69 6e 67 20 | 6f 6e 20 74 68 65 20 65 |trating |on the e|
|00005a70| 64 69 74 69 6e 67 20 74 | 61 73 6b 20 69 74 73 65 |diting t|ask itse|
|00005a80| 6c 66 2c 20 77 68 69 63 | 68 20 6c 65 64 20 6d 65 |lf, whic|h led me|
|00005a90| 0a 74 6f 20 64 69 76 69 | 73 65 20 61 20 73 63 72 |.to divi|se a scr|
|00005aa0| 69 70 74 66 69 6c 65 20 | 77 68 69 63 68 20 77 6f |iptfile |which wo|
|00005ab0| 75 6c 64 20 68 61 6e 64 | 6c 65 20 74 68 65 20 77 |uld hand|le the w|
|00005ac0| 72 69 74 69 6e 67 2d 74 | 6f 2d 61 6e 6f 74 68 65 |riting-t|o-anothe|
|00005ad0| 72 2d 66 69 6c 65 2d 0a | 61 6e 64 2d 73 6f 75 72 |r-file-.|and-sour|
|00005ae0| 63 69 6e 67 20 66 6f 72 | 20 6d 65 2e 20 20 4f 72 |cing for| me. Or|
|00005af0| 20 61 63 74 75 61 6c 6c | 79 2c 20 73 65 76 65 72 | actuall|y, sever|
|00005b00| 61 6c 20 73 75 63 68 20 | 66 69 6c 65 73 3a 20 20 |al such |files: |
|00005b10| 4f 6e 65 20 66 6f 72 0a | 73 69 6e 67 6c 65 2d 6c |One for.|single-l|
|00005b20| 69 6e 65 20 63 6f 6d 6d | 61 6e 64 73 20 74 6f 20 |ine comm|ands to |
|00005b30| 62 65 20 75 73 65 64 20 | 65 73 73 65 6e 74 69 61 |be used |essentia|
|00005b40| 6c 6c 79 20 6f 6e 63 65 | 3b 20 6f 6e 65 20 66 6f |lly once|; one fo|
|00005b50| 72 20 73 69 6e 67 6c 65 | 2d 6c 69 6e 65 0a 63 6f |r single|-line.co|
|00005b60| 6d 6d 61 6e 64 73 20 74 | 68 61 74 20 49 20 77 6f |mmands t|hat I wo|
|00005b70| 75 6c 64 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 |uld want| to use |
|00005b80| 6f 6e 20 74 68 65 20 73 | 61 6d 65 20 66 69 6c 65 |on the s|ame file|
|00005b90| 20 64 75 72 69 6e 67 20 | 76 61 72 69 6f 75 73 0a | during |various.|
|00005ba0| 65 64 69 74 69 6e 67 20 | 73 65 73 73 69 6f 6e 73 |editing |sessions|
|00005bb0| 2c 20 61 6e 64 20 73 6f | 20 77 6f 75 6c 64 20 77 |, and so| would w|
|00005bc0| 61 6e 74 20 74 6f 20 6b | 65 65 70 20 61 76 61 69 |ant to k|eep avai|
|00005bd0| 6c 61 62 6c 65 20 69 6e | 20 74 68 61 74 0a 66 69 |lable in| that.fi|
|00005be0| 6c 65 2c 20 61 6e 64 20 | 6f 6e 65 20 66 6f 72 20 |le, and |one for |
|00005bf0| 6d 75 6c 74 69 2d 6c 69 | 6e 65 20 63 6f 6d 6d 61 |multi-li|ne comma|
|00005c00| 6e 64 73 20 28 74 6f 20 | 62 65 20 75 73 65 64 20 |nds (to |be used |
|00005c10| 6f 6e 63 65 29 2e 20 20 | 57 68 65 6e 0a 49 20 66 |once). |When.I f|
|00005c20| 69 72 73 74 20 67 6f 74 | 20 74 68 65 20 69 64 65 |irst got| the ide|
|00005c30| 61 2c 20 49 20 74 68 6f | 75 67 68 74 20 6f 6e 65 |a, I tho|ught one|
|00005c40| 20 73 63 72 69 70 74 66 | 69 6c 65 20 77 6f 75 6c | scriptf|ile woul|
|00005c50| 64 20 62 65 20 65 6e 6f | 75 67 68 2c 20 61 6e 64 |d be eno|ugh, and|
|00005c60| 0a 49 20 77 6f 75 6c 64 | 20 63 61 6c 6c 20 69 74 |.I would| call it|
|00005c70| 20 60 60 64 6f 27 27 2c | 20 73 6f 20 74 68 61 74 | ``do'',| so that|
|00005c80| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 74 6f 20 | the com|mand to |
|00005c90| 65 78 65 63 75 74 65 20 | 61 20 73 63 72 69 70 74 |execute |a script|
|00005ca0| 20 49 0a 68 61 64 20 77 | 72 69 74 74 65 6e 20 69 | I.had w|ritten i|
|00005cb0| 6e 20 61 20 66 69 6c 65 | 20 49 20 77 61 73 20 65 |n a file| I was e|
|00005cc0| 64 69 74 69 6e 67 20 77 | 6f 75 6c 64 20 62 65 20 |diting w|ould be |
|00005cd0| 60 60 3a 73 6f 20 64 6f | 27 27 2e 20 20 54 68 65 |``:so do|''. The|
|00005ce0| 0a 66 69 6c 65 20 69 74 | 20 77 6f 75 6c 64 20 77 |.file it| would w|
|00005cf0| 72 69 74 65 20 74 6f 20 | 61 6e 64 20 73 6f 75 72 |rite to |and sour|
|00005d00| 63 65 20 77 6f 75 6c 64 | 20 62 65 20 60 60 64 6f |ce would| be ``do|
|00005d10| 2e 61 67 61 69 6e 27 27 | 2c 20 73 6f 20 74 68 61 |.again''|, so tha|
|00005d20| 74 0a 69 66 20 49 20 77 | 61 6e 74 65 64 20 74 6f |t.if I w|anted to|
|00005d30| 20 72 65 75 73 65 20 69 | 74 2c 20 49 20 63 6f 75 | reuse i|t, I cou|
|00005d40| 6c 64 20 60 60 3a 73 6f | 20 64 6f 2e 61 67 61 69 |ld ``:so| do.agai|
|00005d50| 6e 27 27 2e 20 20 57 68 | 65 6e 20 49 20 72 65 61 |n''. Wh|en I rea|
|00005d60| 6c 69 7a 65 64 0a 74 68 | 65 20 6e 65 65 64 20 66 |lized.th|e need f|
|00005d70| 6f 72 20 73 65 76 65 72 | 61 6c 20 76 65 72 73 69 |or sever|al versi|
|00005d80| 6f 6e 73 2c 20 60 60 64 | 6f 27 27 20 62 65 63 61 |ons, ``d|o'' beca|
|00005d90| 6d 65 20 61 20 64 69 72 | 65 63 74 6f 72 79 2e 20 |me a dir|ectory. |
|00005da0| 20 48 65 72 65 2c 0a 66 | 6f 72 20 79 6f 75 72 20 | Here,.f|or your |
|00005db0| 61 6d 75 73 65 6d 65 6e | 74 2c 20 61 72 65 20 74 |amusemen|t, are t|
|00005dc0| 68 65 20 74 68 72 65 65 | 20 66 69 6c 65 73 2e 20 |he three| files. |
|00005dd0| 20 28 52 65 20 74 68 65 | 20 6c 69 6e 65 73 20 60 | (Re the| lines `|
|00005de0| 60 73 65 20 70 72 6f 6d | 70 74 27 27 2c 0a 63 66 |`se prom|pt'',.cf|
|00005df0| 2e 20 6d 79 20 63 6f 6d | 6d 65 6e 74 20 6f 6e 20 |. my com|ment on |
|00005e00| 74 68 61 74 20 75 6e 64 | 65 72 20 50 52 4f 42 4c |that und|er PROBL|
|00005e10| 45 4d 53 20 57 49 54 48 | 20 53 4f 55 52 43 45 20 |EMS WITH| SOURCE |
|00005e20| 65 74 63 2e 29 3a 0a 0a | 20 20 64 6f 2f 31 20 20 |etc.):..| do/1 |
|00005e30| 28 66 6f 72 20 31 2d 74 | 69 6d 65 20 75 73 65 20 |(for 1-t|ime use |
|00005e40| 6f 66 20 31 2d 6c 69 6e | 65 20 63 6f 6d 6d 61 6e |of 1-lin|e comman|
|00005e50| 64 73 29 0a 09 2e 77 21 | 20 7e 2f 64 6f 2f 61 67 |ds)...w!| ~/do/ag|
|00005e60| 61 69 6e 0a 09 64 0a 09 | 73 6f 20 23 0a 09 73 65 |ain..d..|so #..se|
|00005e70| 20 70 72 6f 6d 70 74 0a | 0a 20 20 64 6f 2f 31 2b | prompt.|. do/1+|
|00005e80| 20 20 28 6c 69 6b 65 20 | 61 62 6f 76 65 2c 20 77 | (like |above, w|
|00005e90| 69 74 68 6f 75 74 20 64 | 65 6c 65 74 69 6e 67 20 |ithout d|eleting |
|00005ea0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 29 0a 09 2e 77 |the comm|and)...w|
|00005eb0| 21 20 7e 2f 64 6f 2f 61 | 67 61 69 6e 0a 09 73 6f |! ~/do/a|gain..so|
|00005ec0| 20 23 0a 09 73 65 20 70 | 72 6f 6d 70 74 0a 0a 20 | #..se p|rompt.. |
|00005ed0| 20 64 6f 2f 3a 20 20 28 | 74 6f 20 75 73 65 20 74 | do/: (|to use t|
|00005ee0| 68 69 73 2c 20 77 72 69 | 74 65 20 61 20 6d 75 6c |his, wri|te a mul|
|00005ef0| 74 69 2d 6c 69 6e 65 20 | 63 6f 6d 6d 61 6e 64 20 |ti-line |command |
|00005f00| 73 63 72 69 70 74 2c 20 | 70 75 74 20 3a 20 61 74 |script, |put : at|
|00005f10| 0a 20 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |. the b|eginning|
|00005f20| 20 6f 66 20 74 68 65 20 | 66 69 72 73 74 20 6c 69 | of the |first li|
|00005f30| 6e 65 2c 20 70 75 74 20 | 74 68 65 20 63 75 72 73 |ne, put |the curs|
|00005f40| 6f 72 20 6f 6e 20 74 68 | 65 20 6c 61 73 74 0a 20 |or on th|e last. |
|00005f50| 20 6c 69 6e 65 20 6f 66 | 20 74 68 65 20 73 63 72 | line of| the scr|
|00005f60| 69 70 74 2c 20 61 6e 64 | 20 74 68 65 6e 20 73 6f |ipt, and| then so|
|00005f70| 75 72 63 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |urce the| followi|
|00005f80| 6e 67 3a 29 0a 09 3f 5e | 3a 3f 73 2f 3a 2f 0a 09 |ng:)..?^|:?s/:/..|
|00005f90| 2c 27 27 77 21 20 7e 2f | 64 6f 2f 61 67 61 69 6e |,''w! ~/|do/again|
|00005fa0| 0a 09 2c 27 27 64 0a 09 | 73 6f 20 23 0a 09 73 65 |..,''d..|so #..se|
|00005fb0| 20 70 72 6f 6d 70 74 0a | 0a 28 49 20 61 6c 73 6f | prompt.|.(I also|
|00005fc0| 20 63 72 65 61 74 65 64 | 20 61 6e 6f 74 68 65 72 | created| another|
|00005fd0| 20 76 65 72 73 69 6f 6e | 20 74 6f 20 75 73 65 20 | version| to use |
|00005fe0| 69 6e 20 63 61 73 65 20 | 74 68 65 20 73 63 72 69 |in case |the scri|
|00005ff0| 70 74 20 68 61 64 0a 74 | 6f 20 68 61 76 65 20 61 |pt had.t|o have a|
|00006000| 6e 20 69 6e 74 65 72 6e | 61 6c 20 6c 69 6e 65 20 |n intern|al line |
|00006010| 62 65 67 69 6e 6e 69 6e | 67 20 77 69 74 68 20 60 |beginnin|g with `|
|00006020| 60 3a 27 27 2c 20 73 6f | 20 74 68 61 74 20 74 68 |`:'', so| that th|
|00006030| 69 73 20 63 6f 75 6c 64 | 6e 27 74 0a 75 6e 61 6d |is could|n't.unam|
|00006040| 62 69 67 75 6f 75 73 6c | 79 20 6d 61 72 6b 20 74 |biguousl|y mark t|
|00006050| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|00006060| 74 68 65 20 73 63 72 69 | 70 74 2e 20 20 54 68 69 |the scri|pt. Thi|
|00006070| 73 20 75 73 65 64 0a 61 | 20 6c 69 6e 65 20 77 68 |s used.a| line wh|
|00006080| 69 63 68 20 65 78 70 6c | 69 63 69 74 6c 79 20 73 |ich expl|icitly s|
|00006090| 70 65 63 69 66 69 65 64 | 20 74 68 65 20 61 64 64 |pecified| the add|
|000060a0| 72 65 73 73 2d 72 61 6e | 67 65 20 6f 66 20 74 68 |ress-ran|ge of th|
|000060b0| 65 20 73 63 72 69 70 74 | 2e 0a 42 75 74 20 49 20 |e script|..But I |
|000060c0| 68 61 76 65 20 6e 65 76 | 65 72 20 68 61 64 20 61 |have nev|er had a|
|000060d0| 20 6e 65 65 64 20 66 6f | 72 20 69 74 2c 20 73 6f | need fo|r it, so|
|000060e0| 20 49 20 77 69 6c 6c 20 | 6e 6f 74 20 62 6f 74 68 | I will |not both|
|000060f0| 65 72 20 79 6f 75 20 77 | 69 74 68 20 69 74 2e 29 |er you w|ith it.)|
|00006100| 0a 20 20 20 20 46 69 6e | 61 6c 6c 79 2c 20 68 61 |. Fin|ally, ha|
|00006110| 76 69 6e 67 20 67 6f 74 | 74 65 6e 20 61 6e 20 61 |ving got|ten an a|
|00006120| 63 63 6f 75 6e 74 20 6f | 6e 20 61 20 6d 61 63 68 |ccount o|n a mach|
|00006130| 69 6e 65 20 77 69 74 68 | 20 61 20 76 65 72 73 69 |ine with| a versi|
|00006140| 6f 6e 20 33 0a 65 64 69 | 74 6f 72 20 72 65 63 65 |on 3.edi|tor rece|
|00006150| 6e 74 6c 79 2c 20 49 20 | 68 61 76 65 20 64 69 76 |ntly, I |have div|
|00006160| 69 73 65 64 20 73 74 69 | 6c 6c 20 61 6e 6f 74 68 |ised sti|ll anoth|
|00006170| 65 72 20 77 61 79 20 6f | 66 20 64 6f 69 6e 67 20 |er way o|f doing |
|00006180| 74 68 69 73 2e 20 20 49 | 0a 68 61 76 65 20 70 75 |this. I|.have pu|
|00006190| 74 20 69 6e 20 6d 79 20 | 45 58 49 4e 49 54 20 74 |t in my |EXINIT t|
|000061a0| 68 65 20 63 6f 6d 6d 61 | 6e 64 0a 0a 09 27 6d 61 |he comma|nd...'ma|
|000061b0| 70 20 5e 41 20 22 61 79 | 79 3a 40 61 5e 4d 27 0a |p ^A "ay|y:@a^M'.|
|000061c0| 0a 61 6e 64 20 6e 6f 77 | 2c 20 67 72 61 74 69 66 |.and now|, gratif|
|000061d0| 79 69 6e 67 6c 79 2c 20 | 74 68 65 20 73 69 6e 67 |yingly, |the sing|
|000061e0| 6c 65 20 73 74 72 6f 6b | 65 20 5e 41 20 68 61 73 |le strok|e ^A has|
|000061f0| 20 65 73 73 65 6e 74 69 | 61 6c 6c 79 20 74 68 65 | essenti|ally the|
|00006200| 20 65 66 66 65 63 74 0a | 6f 66 20 60 60 3a 73 6f | effect.|of ``:so|
|00006210| 20 64 6f 2f 31 2b 27 27 | 20 20 2d 2d 20 65 78 63 | do/1+''| -- exc|
|00006220| 65 70 74 20 66 6f 72 20 | 74 68 65 20 72 65 73 74 |ept for |the rest|
|00006230| 72 69 63 74 69 6f 6e 73 | 20 74 6f 20 77 68 69 63 |rictions| to whic|
|00006240| 68 20 76 69 20 60 60 6d | 61 70 27 27 0a 63 6f 6d |h vi ``m|ap''.com|
|00006250| 6d 61 6e 64 73 20 61 72 | 65 20 73 75 62 6a 65 63 |mands ar|e subjec|
|00006260| 74 2e 20 20 42 75 74 20 | 49 27 76 65 20 6f 6e 6c |t. But |I've onl|
|00006270| 79 20 62 65 65 6e 20 75 | 73 69 6e 67 20 74 68 69 |y been u|sing thi|
|00006280| 73 20 66 6f 72 20 61 0a | 63 6f 75 70 6c 65 20 6f |s for a.|couple o|
|00006290| 66 20 77 65 65 6b 73 3b | 20 73 6f 20 49 20 68 61 |f weeks;| so I ha|
|000062a0| 76 65 20 79 65 74 20 74 | 6f 20 6c 65 61 72 6e 20 |ve yet t|o learn |
|000062b0| 68 6f 77 20 63 68 61 66 | 69 6e 67 20 74 68 6f 73 |how chaf|ing thos|
|000062c0| 65 20 72 65 73 74 72 69 | 63 74 69 6f 6e 73 0a 77 |e restri|ctions.w|
|000062d0| 69 6c 6c 20 6f 72 20 77 | 6f 6e 27 74 20 62 65 2e |ill or w|on't be.|
|000062e0| 0a 20 20 20 20 20 41 6e | 79 77 61 79 2c 20 69 74 |. An|yway, it|
|000062f0| 20 6d 69 67 68 74 20 62 | 65 20 77 6f 72 74 68 20 | might b|e worth |
|00006300| 74 68 69 6e 6b 69 6e 67 | 20 61 62 6f 75 74 20 77 |thinking| about w|
|00006310| 68 65 74 68 65 72 20 73 | 6f 6d 65 20 6f 66 20 74 |hether s|ome of t|
|00006320| 68 65 73 65 0a 74 68 69 | 6e 67 73 20 74 68 61 74 |hese.thi|ngs that|
|00006330| 20 49 27 76 65 20 64 6f | 6e 65 20 77 69 74 68 20 | I've do|ne with |
|00006340| 6d 61 63 72 6f 73 20 73 | 68 6f 75 6c 64 20 62 65 |macros s|hould be|
|00006350| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 64 20 69 6e | incorpo|rated in|
|00006360| 20 73 6f 6d 65 20 66 6f | 72 6d 0a 69 6e 74 6f 20 | some fo|rm.into |
|00006370| 74 68 65 20 65 64 69 74 | 6f 72 20 69 74 73 65 6c |the edit|or itsel|
|00006380| 66 3b 20 6f 72 20 65 6c | 73 65 20 77 68 65 74 68 |f; or el|se wheth|
|00006390| 65 72 20 74 68 65 73 65 | 20 6d 61 63 72 6f 73 20 |er these| macros |
|000063a0| 6d 69 67 68 74 20 62 65 | 20 77 72 69 74 74 65 6e |might be| written|
|000063b0| 0a 75 70 20 69 6e 20 74 | 68 65 20 64 6f 63 75 6d |.up in t|he docum|
|000063c0| 65 6e 74 61 74 69 6f 6e | 20 28 6f 72 20 73 6f 6d |entation| (or som|
|000063d0| 65 20 74 75 74 6f 72 69 | 61 6c 73 29 20 6f 6e 20 |e tutori|als) on |
|000063e0| 74 68 65 20 65 64 69 74 | 6f 72 2e 0a 0a 20 20 20 |the edit|or... |
|000063f0| 20 20 4e 65 78 74 20 73 | 75 62 6a 65 63 74 3a 20 | Next s|ubject: |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.